Re: [PATCH v3] usb: core: Fix potential memory leak adding dyn USBdevice IDs

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

 



On Tue, Jan 28, 2014 at 10:22:27PM +0100, Christian Engelmayer wrote:
> Fix a memory leak in the usb_store_new_id() error paths. When bailing out
> due to sanity checks, the function left the already allocated usb_dynid
> struct in place. This regression was introduced by the following commits:
> 
> c63fe8f6 (usb: core: add sanity checks when using bInterfaceClass with new_id)
> 1b9fb31f (usb: core: check for valid id_table when using the RefId feature)
> 52a6966c (usb: core: bail out if user gives an unknown RefId when using new_id)
> 
> Detected by Coverity: CID 1162604.
> 
> Signed-off-by: Christian Engelmayer <cengelma@xxxxxx>

Acked-by: Wolfram Sang <wsa@xxxxxxxxxxxxx>

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux