commit | bfd2793c9559ae73ae021797f1d4b097c27f24be | [log] [tgz] |
---|---|---|
author | Yann Droneaud <[mailto:ydroneaud@opteya.com]> | Fri Mar 28 14:55:21 2014 -0400 |
committer | David S. Miller <davem@davemloft.net> | Fri Mar 28 14:55:21 2014 -0400 |
tree | d352f4b3e46573880cd4efe67eb81235e7e22937 | |
parent | f3c9ec05ab020b57108647cd30ce67bec156486f [diff] |
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 <swise@opengridcomputing.com> Cc: Steve Wise <swise@chelsio.com> Signed-off-by: Yann Droneaud <ydroneaud@opteya.com> Acked-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: David S. Miller <davem@davemloft.net>