mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 10:26:09 +00:00
USB: free memory when writing fails in usb/serial/mos7840.c
Free buffer when writing ZLP_REG5 failed Signed-off-by: Roel Kluin <12o3l@tiscali.nl> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
2e2c5eea95
commit
7ced46c3ad
@ -2711,7 +2711,7 @@ static int mos7840_startup(struct usb_serial *serial)
|
|||||||
status = mos7840_set_reg_sync(serial->port[0], ZLP_REG5, Data);
|
status = mos7840_set_reg_sync(serial->port[0], ZLP_REG5, Data);
|
||||||
if (status < 0) {
|
if (status < 0) {
|
||||||
dbg("Writing ZLP_REG5 failed status-0x%x\n", status);
|
dbg("Writing ZLP_REG5 failed status-0x%x\n", status);
|
||||||
return -1;
|
goto error;
|
||||||
} else
|
} else
|
||||||
dbg("ZLP_REG5 Writing success status%d\n", status);
|
dbg("ZLP_REG5 Writing success status%d\n", status);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user