aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLanqing Liu <[email protected]>2020-03-16 11:13:33 +0800
committerGreg Kroah-Hartman <[email protected]>2020-03-17 15:20:41 +0100
commitefc176929a3505a30c3993ddd393b40893649bd2 (patch)
tree36b6beab03b26fc1463f2adb49db26da816ee233 /tools/perf/scripts/python
parentf1b49d5a07131a723a7fcf83310c060dac116965 (diff)
serial: sprd: Fix a dereference warning
We should validate if the 'sup' is NULL or not before freeing DMA memory, to fix below warning. "drivers/tty/serial/sprd_serial.c:1141 sprd_remove() error: we previously assumed 'sup' could be null (see line 1132)" Fixes: f4487db58eb7 ("serial: sprd: Add DMA mode support") Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Lanqing Liu <[email protected]> Cc: stable <[email protected]> Link: https://lore.kernel.org/r/e2bd92691538e95b04a2c2a728f3292e1617018f.1584325957.git.liuhhome@gmail.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions