[PATCH V2] staging: ced1401: kfree the pdx at err path and remove callback

Dan Carpenter dan.carpenter at oracle.com
Mon Apr 15 12:59:04 UTC 2013

On Mon, Apr 15, 2013 at 04:51:50PM +0530, Devendra Naga wrote:
> leak introduced since pdx is not freed, free it at err path and
> at remove callback

The original code is correct and this patch introduces a double
free bug.  ced_delete() already calls kfree(pdx).

dan carpenter

More information about the devel mailing list