summaryrefslogtreecommitdiffstats
path: root/certs
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2019-01-22 13:57:19 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-30 09:35:46 +0100
commit1575c083a78cc1137ad8bfa042d02eeb9dc86ef4 (patch)
tree7b570f2b2e25b2b718f9c354a5a06b3e4dc7488d /certs
parentf17b5f06cb92ef2250513a1e154c47b78df07d40 (diff)
downloadtalos-op-linux-1575c083a78cc1137ad8bfa042d02eeb9dc86ef4.tar.gz
talos-op-linux-1575c083a78cc1137ad8bfa042d02eeb9dc86ef4.zip
tty: serial: 8250_mtk: Fix potential NULL pointer dereference
There is a potential NULL pointer dereference in case devm_kzalloc() fails and returns NULL. Fix this by adding a NULL check on data->dma This bug was detected with the help of Coccinelle. Fixes: 85b5c1dd0456 ("serial: 8250-mtk: add uart DMA support") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud