diff options
Diffstat (limited to 'drivers/staging/ft1000')
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_hw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c b/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c index 7012e09a1599..fa82d4f3523e 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c @@ -1153,6 +1153,7 @@ static int ft1000_proc_drvmsg(struct ft1000_usb *dev, u16 size) } convert; char *cmdbuffer = kmalloc(1600, GFP_KERNEL); + if (!cmdbuffer) return -ENOMEM; |