diff options
author | 2018-03-26 17:15:56 +0530 | |
---|---|---|
committer | 2018-03-28 13:37:09 +0200 | |
commit | 25b951332da01e4e4d5e9d8d36518b46e1e4015c (patch) | |
tree | 70f1ea57c7d413dcf3bf7911aa1e3c3c29a10d9c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | staging: wilc1000: remove unused global variables related to p2p (diff) | |
download | linux-dev-25b951332da01e4e4d5e9d8d36518b46e1e4015c.tar.xz linux-dev-25b951332da01e4e4d5e9d8d36518b46e1e4015c.zip |
staging: wilc1000: avoid 'NULL' pointer access in wilc_network_info_received()
Added 'NULL' check before accessing the allocated memory. Free up the
memory incase of failure to enqueue the command. Used kmemdup instead of
kmalloc & memcpy.
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions