diff options
| author | Jérôme Pouiller <[email protected]> | 2020-10-09 17:13:01 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-10-10 10:33:59 +0000 |
| commit | fd2575c4a45017068445bfe31e93522e2d451d76 (patch) | |
| tree | ec27c8742887bd029f36b9e699110a272b5028e7 /drivers/usb/cdns3/cdns3-imx.c | |
| parent | staging: wfx: improve error handling of hif_join() (diff) | |
| download | kernel-fd2575c4a45017068445bfe31e93522e2d451d76.tar.gz kernel-fd2575c4a45017068445bfe31e93522e2d451d76.zip | |
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 <[email protected]>
Signed-off-by: Jérôme Pouiller <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions
