Files
twx-linux/kernel
Shreyas Joshi 27d1856973 printk: handle blank console arguments passed in.
[ Upstream commit 48021f9813 ]

If uboot passes a blank string to console_setup then it results in
a trashed memory. Ultimately, the kernel crashes during freeing up
the memory.

This fix checks if there is a blank parameter being
passed to console_setup from uboot. In case it detects that
the console parameter is blank then it doesn't setup the serial
device and it gracefully exits.

Link: https://lore.kernel.org/r/20200522065306.83-1-shreyas.joshi@biamp.com
Signed-off-by: Shreyas Joshi <shreyas.joshi@biamp.com>
Acked-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
[pmladek@suse.com: Better format the commit message and code, remove unnecessary brackets.]
Signed-off-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-01 13:12:45 +02:00
..
2020-09-23 10:46:32 +02:00
…
2019-12-01 09:14:03 +01:00
…
2018-08-03 07:50:38 +02:00
…
…
…
2020-04-02 16:34:21 +02:00
…
…
2018-08-03 07:50:22 +02:00
…
…
2020-04-02 16:34:20 +02:00
…
…
…
…
…
…
2020-04-24 08:00:38 +02:00
…
…
…
2020-01-09 10:17:53 +01:00
…
2018-05-09 09:51:50 +02:00
…
…
…
2020-05-20 08:16:58 +02:00
…
…
…