Re: [GIT PATCH 2/3] Resend : Fix memory leak in qcserial driver
From: Sergei Shtylyov
Date: Tue Mar 29 2011 - 07:23:43 EST
Hello.
On 28-03-2011 21:38, Steven Hardy wrote:
Posting all 3 patches having the same sucject is not a good idea.
Patch 2 of 3, addresses the problem where serial->private can end up pointing to freed memory in the event qcprobe fails & returns -ENODEV
You still didn't wrap the changelog text properly.
Original description:
3 - Don't assign serial->private when doing the kzalloc or serial->private ends up pointing to freed memory in the event we return -ENODEV, instead call usb_set_serial_data(serial, data) at the end of the function, and only have one return-point.
WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/