Re: [PATCH 4/5] drivers/char/agp: Eliminate memory leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 24, 2010 at 04:39:29PM +0200, Julia Lawall wrote:
>  
> -	error = agp_add_bridge(bridge);
> +	return agp_add_bridge(bridge);
>  

	error = agp_add_bridge(bridge);
	if (error)
		goto fail;
	return 0;

>  fail:
> +	kfree(fake_bridge_dev);
>  	return error;
>  }
>  

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux