From: Luiz Fernando Capitulino Date: Fri, 12 May 2006 01:34:24 +0000 (-0300) Subject: [PATCH] usbserial: Fixes leak in serial_open() error path. X-Git-Tag: v2.6.17-rc5~165^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71a84163ca6b4e36744978385e94150af32f9d75;p=pandora-kernel.git [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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed