summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJiangshan Yi <yijiangshan@kylinos.cn>2026-07-15 15:35:46 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-07-17 13:07:04 +0200
commit7fb13fd7e9a59a37cd911efff83abe19e3ee029d (patch)
treec1e67eddfa749993a1989f10fe9b225f16f0c551 /scripts
parenta13c140cc289c0b7b3770bce5b3ad42ab35074aa (diff)
serial: 8250_mid: Fix NULL function pointer dereference on DNV/ICX-D/SNR platforms
Commit b1b4efea05a5 ("serial: 8250_mid: Disable DMA for selected platforms") replaced the dnv_board setup and exit callbacks with PTR_IF(false, ...), which evaluates to NULL. However, the three call sites in mid8250_probe() and mid8250_remove() unconditionally dereference these function pointers without NULL checks, causing a NULL pointer dereference (kernel oops) on any Denverton (DNV), Ice Lake Xeon D (ICX-D/CDF), or Snowridge (SNR) platform. Fix this by adding the missing NULL checks before calling the setup and exit callbacks. Fixes: b1b4efea05a5 ("serial: 8250_mid: Disable DMA for selected platforms") Cc: stable <stable@kernel.org> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Jiangshan Yi <yijiangshan@kylinos.cn> Link: https://patch.msgid.link/20260715073546.1875083-1-yijiangshan@kylinos.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions