提交 7ced46c3 编写于 作者: R Roel Kluin 提交者: Greg Kroah-Hartman

USB: free memory when writing fails in usb/serial/mos7840.c

Free buffer when writing ZLP_REG5 failed
Signed-off-by: NRoel Kluin <12o3l@tiscali.nl>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 2e2c5eea
......@@ -2711,7 +2711,7 @@ static int mos7840_startup(struct usb_serial *serial)
status = mos7840_set_reg_sync(serial->port[0], ZLP_REG5, Data);
if (status < 0) {
dbg("Writing ZLP_REG5 failed status-0x%x\n", status);
return -1;
goto error;
} else
dbg("ZLP_REG5 Writing success status%d\n", status);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册