lkml.org 
[lkml]   [2010]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] staging: keucr: check kmalloc() return value
On Sun, Sep 12, 2010 at 10:56:43PM +0400, Vasiliy Kulikov wrote:
> kmalloc() may fail, if so return error code.
> Also don't alloc 16 bytes from the heap, use stack instead.

Nope, you can't do that for USB drivers, sorry. Please read the
documentation, it states this very clearly.

thanks,

greg k-h


\
 
 \ /
  Last update: 2010-09-16 21:55    [from the cache]
©2003-2011 Jasper Spaans