staging/ft1000: Return -ENOMEM if kmalloc fails at ft1000_probe
authorDevendra Naga <devendra.aaru@gmail.com>
Tue, 19 Jun 2012 12:45:25 +0000 (18:15 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Jun 2012 23:07:07 +0000 (16:07 -0700)
commitb10c0b92caf97e0d7f1d76996f73bf07a719aa3e
tree552d5d2ad300d74d92680da592d6bc29e0879196
parent86c948b4416b4c2c064d6c7e15476afbc04e2bf5
staging/ft1000: Return -ENOMEM if kmalloc fails at ft1000_probe

If the kmalloc fails return -ENOMEM , returning 0 is not the proper
way if any function fails

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ft1000/ft1000-usb/ft1000_usb.c