wlcore: fixup an allocation
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 17 Apr 2012 06:28:47 +0000 (09:28 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 15 May 2012 21:53:24 +0000 (17:53 -0400)
commit0230dfea09f7319658c86c07f5507092366dfc00
tree3be3a6cfa0b45ff34bb9dc130ca2e248cefa6bcd
parentcd840f6a0d6522e37c49def0eabb1e2134b68f1d
wlcore: fixup an allocation

GFP_DMA isn't supposed to be used by itself.  This allocation is allowed
to sleep so it should be ORing it with GFP_KERNEL.
Also we should check for allocations errors.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wlcore/cmd.c