diff options
author | Jesper Juhl <jj@chaosbits.net> | 2010-11-07 22:04:43 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-11-11 07:14:07 -0800 |
commit | 793b62337ecf1bf9a816fcb7105bb1ca424cf7d4 (patch) | |
tree | 218ea2beb29315ee118ef7b127a3120b5270f18f /drivers/usb/usb-skeleton.c | |
parent | 886ccd4520064408ce5876cfe00554ce52ecf4a7 (diff) | |
download | blackbird-op-linux-793b62337ecf1bf9a816fcb7105bb1ca424cf7d4.tar.gz blackbird-op-linux-793b62337ecf1bf9a816fcb7105bb1ca424cf7d4.zip |
UWB: Return UWB_RSV_ALLOC_NOT_FOUND rather than crashing on NULL dereference if kzalloc fails
Crashing on a null pointer deref is never a nice thing to do. It seems
to me that it's better to simply return UWB_RSV_ALLOC_NOT_FOUND if
kzalloc() fails in uwb_rsv_find_best_allocation().
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Acked-by: David Vrabel <david.vrabel@csr.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/usb-skeleton.c')
0 files changed, 0 insertions, 0 deletions