提交 623c2bb2 编写于 作者: D Devendra Naga 提交者: Greg Kroah-Hartman

staging: serqt_usb2: fix dbg print when kzalloc failed to allocate qt_port

the port was kzalloced but the print statement says that its kmalloc.
Signed-off-by: NDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 c993e432
...@@ -704,7 +704,7 @@ static int qt_startup(struct usb_serial *serial) ...@@ -704,7 +704,7 @@ static int qt_startup(struct usb_serial *serial)
port = serial->port[i]; port = serial->port[i];
qt_port = kzalloc(sizeof(*qt_port), GFP_KERNEL); qt_port = kzalloc(sizeof(*qt_port), GFP_KERNEL);
if (!qt_port) { if (!qt_port) {
dbg("%s: kmalloc for quatech_port (%d) failed!.", dbg("%s: kzalloc for quatech_port (%d) failed!.",
__func__, i); __func__, i);
for (--i; i >= 0; i--) { for (--i; i >= 0; i--) {
port = serial->port[i]; port = serial->port[i];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册