diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-11-20 08:28:14 -0600 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2017-11-29 19:48:17 +0530 |
commit | 62a277d43d47e74972de44d33bd3763e31992414 (patch) | |
tree | 4b91a3bff3d3537ecd82fc3ca959517a66f464ec /drivers/hid/usbhid/usbkbd.c | |
parent | 5c9afbda911ce20b3f2181d1e440a0222e1027dd (diff) | |
download | talos-op-linux-62a277d43d47e74972de44d33bd3763e31992414.tar.gz talos-op-linux-62a277d43d47e74972de44d33bd3763e31992414.zip |
dmaengine: at_hdmac: fix potential NULL pointer dereference in atc_prep_dma_interleaved
_xt_ is being dereferenced before it is null checked, hence there is a
potential null pointer dereference.
Fix this by moving the pointer dereference after _xt_ has been null
checked.
This issue was detected with the help of Coccinelle.
Fixes: 4483320e241c ("dmaengine: Use Pointer xt after NULL check.")
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/hid/usbhid/usbkbd.c')
0 files changed, 0 insertions, 0 deletions