[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <200703090914.24242.oneukum@suse.de>
Date: Fri, 9 Mar 2007 09:14:24 +0100
From: Oliver Neukum <oneukum@...e.de>
To: Amit Choudhary <amit2030@...il.com>
Cc: Linux Kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] drivers/usb/serial/mos7840.c: check kmalloc() return value.
Am Freitag, 9. März 2007 08:18 schrieb Amit Choudhary:
> Description: Check the return value of kmalloc() in function mos7840_get_reg(), in file drivers/usb/serial/mos7840.c.
No, this is wrong. You must catch this at the source. The driver
cannot function if this function always returns -ENOMEM. It makes
no sense to start up the device under these circumstances.
Regards
Oliver
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists