mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
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]>