Files
linux/drivers/infiniband
Yann Droneaud bfd2793c95 RDMA/cxgb4: set error code on kmalloc() failure
If kmalloc() fails in c4iw_alloc_ucontext(), the function
leaves but does not set an error code in ret variable:
it will return 0 to the caller.

This patch set ret to -ENOMEM in such case.

Cc: Steve Wise <[email protected]>
Cc: Steve Wise <[email protected]>
Signed-off-by: Yann Droneaud <[email protected]>
Acked-by: Steve Wise <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2014-03-28 14:55:21 -04:00
..
2014-01-22 23:24:21 -08:00