Browse Source

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: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Devendra Naga 13 years ago
parent
commit
623c2bb2c5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/staging/serqt_usb2/serqt_usb2.c

+ 1 - 1
drivers/staging/serqt_usb2/serqt_usb2.c

@@ -704,7 +704,7 @@ static int qt_startup(struct usb_serial *serial)
 		port = serial->port[i];
 		qt_port = kzalloc(sizeof(*qt_port), GFP_KERNEL);
 		if (!qt_port) {
-			dbg("%s: kmalloc for quatech_port (%d) failed!.",
+			dbg("%s: kzalloc for quatech_port (%d) failed!.",
 			    __func__, i);
 			for (--i; i >= 0; i--) {
 				port = serial->port[i];