diff options
author | 2011-01-10 10:26:00 +0800 | |
---|---|---|
committer | 2011-01-13 15:46:44 -0500 | |
commit | 35b3ac470b982ded560e1b2ec9206a8d186c3459 (patch) | |
tree | 86c767eb3574447c4a318831d9cd1e021a4f1d73 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | hostap_cs: fix sleeping function called from invalid context (diff) | |
download | wireguard-linux-35b3ac470b982ded560e1b2ec9206a8d186c3459.tar.xz wireguard-linux-35b3ac470b982ded560e1b2ec9206a8d186c3459.zip |
iwmc3200wifi: Return proper error for iwm_if_alloc
In the case of alloc_netdev_mq failure and kmalloc failure,
current implementation returns ERR_PTR(0).
As a result, the caller of iwm_if_alloc does not catch the error by IS_ERR
macro. Fix it by setting proper error code for ret variable in the failure
cases.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions