diff options
| author | Colin Ian King <[email protected]> | 2018-02-28 11:28:49 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-03-01 17:26:13 +0100 |
| commit | e1a7418529e33bc4efc346324557251a16a3e79b (patch) | |
| tree | 39ebc19e53a5fd5d20f01361e2321ba51af1bf40 /tools/perf/scripts/python/call-graph-from-sql.py | |
| parent | 44b4709c5386e054a402ad612966bfbbf9ccc81c (diff) | |
staging: rtl8192u: return -ENOMEM on failed allocation of priv->oldaddr
Currently the allocation of priv->oldaddr is not null checked which will
lead to subsequent errors when accessing priv->oldaddr. Fix this with
a null pointer check and a return of -ENOMEM on allocation failure.
Detected with Coccinelle:
drivers/staging/rtl8192u/r8192U_core.c:1708:2-15: alloc with no test,
possible model on line 1723
Fixes: 8fc8598e61f6 ("Staging: Added Realtek rtl8192u driver to staging")
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions