commit | 71a84163ca6b4e36744978385e94150af32f9d75 | [log] [tgz] |
---|---|---|
author | Luiz Fernando Capitulino <lcapitulino@mandriva.com.br> | Thu May 11 22:34:24 2006 -0300 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Fri May 12 11:58:09 2006 -0700 |
tree | 2f00bcc4c102660e55c2ff840ce4db6d44ede988 | |
parent | 704936a25bda9bb12e35bb222d5e3f26186dc279 [diff] |
[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>