]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: serqt_usb2: fix dbg print when kzalloc failed to allocate qt_port
authorDevendra Naga <devendra.aaru@gmail.com>
Sun, 26 Aug 2012 05:42:33 +0000 (11:12 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 21:23:33 +0000 (14:23 -0700)
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>
drivers/staging/serqt_usb2/serqt_usb2.c

index 1b26023b7928b69839beb42e5e351f8ae450d06c..c56609c6094bd14c51327bca78e45a9aecb372f0 100644 (file)
@@ -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];