Jérôme Pouiller fd2575c4a4 staging: wfx: check memory allocation
Smatch complains:

   main.c:228 wfx_send_pdata_pds() warn: potential NULL parameter dereference 'tmp_buf'
   227          tmp_buf = kmemdup(pds->data, pds->size, GFP_KERNEL);
   228          ret = wfx_send_pds(wdev, tmp_buf, pds->size);
                                         ^^^^^^^
   229          kfree(tmp_buf);

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20201009171307.864608-3-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-10-10 12:33:59 +02:00
..
2020-10-07 12:55:47 +02:00
2020-10-07 12:55:47 +02:00
2020-10-07 12:55:47 +02:00
2020-10-07 12:55:47 +02:00
2020-10-07 12:55:47 +02:00
2019-10-04 10:43:39 +02:00
2020-10-07 12:55:47 +02:00
2020-10-07 12:55:47 +02:00
2020-10-07 12:55:47 +02:00
2020-10-07 12:55:47 +02:00
2020-10-07 12:55:47 +02:00
2020-10-07 12:55:47 +02:00
2020-10-10 12:33:59 +02:00
2020-10-07 12:55:47 +02:00
2020-10-07 12:55:47 +02:00
2020-10-07 12:55:47 +02:00
2020-10-07 12:55:47 +02:00
2020-10-07 12:55:47 +02:00
2020-10-07 12:55:47 +02:00
2020-10-07 12:55:47 +02:00
2020-09-13 09:23:06 +02:00
2020-10-07 12:55:47 +02:00
2020-10-07 12:55:47 +02:00