diff options
author | Luiz Fernando Capitulino <lcapitulino@mandriva.com.br> | 2006-05-12 03:34:24 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-05-12 20:58:09 +0200 |
commit | 71a84163ca6b4e36744978385e94150af32f9d75 (patch) | |
tree | 2f00bcc4c102660e55c2ff840ce4db6d44ede988 /drivers/usb/serial/Makefile | |
parent | [PATCH] usbserial: Fixes use-after-free in serial_open(). (diff) | |
download | linux-71a84163ca6b4e36744978385e94150af32f9d75.tar.xz linux-71a84163ca6b4e36744978385e94150af32f9d75.zip |
[PATCH] usbserial: Fixes leak in serial_open() error path.
If serial_open() fails at the port assignment or mutex_lock_interruptible()
is interrupted, the 'serial' object will never be freed.
We should call kref_put() when those errors happens.
Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/Makefile')
0 files changed, 0 insertions, 0 deletions