]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
USB: correct error handling in cdc-wdm
authorOliver Neukum <oliver@neukum.org>
Mon, 20 Apr 2009 15:24:49 +0000 (17:24 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Apr 2009 21:15:30 +0000 (14:15 -0700)
commit052fbc0d7f76106725c998183d64dcacecd21f8f
tree0771141a48c604ddbfdd1dca3a19bf2c37523876
parent2400a2bfbd0e912193fe3b077f492d4980141813
USB: correct error handling in cdc-wdm

This patch to cdc-wdm

- checks for partial extra descriptors
- fixes a leak in the error case of probe
- checks for an exact number of endpoints
- adds a clarifying comment

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/class/cdc-wdm.c