]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250: dw: Fix NULL pointer dereference
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Mon, 2 May 2022 11:56:21 +0000 (14:56 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 May 2022 20:33:36 +0000 (22:33 +0200)
commit84ffa01e2a24c70c40d33be817d91fe3d3f3555e
tree3d8c8de969f49858bfac049bcf719cc9e5fddf3b
parentc8f393d5e29b69ce7ab1f32c093b5c89ff80e46e
serial: 8250: dw: Fix NULL pointer dereference

dw8250_platform_data is only used on DT platforms for now.

Fixes: 99cdec19d3a7 ("serial: 8250: dw: Create a generic platform data structure")
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220502115621.77985-1-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dw.c