Files
Linux/drivers
Sergey Senozhatsky db179e0d0d of: do not leak console options
Do not strdup() console options. It seems that the only reason for
it to be strdup()-ed was a compilation warning: printk, UART and
console drivers, for some reason, expect char pointer instead of
const char pointer. So we can just pass `of_stdout_options', but
need to cast it to char pointer. A better fix would be to change
printk, console drivers and UART to accept const char `options';
but that will take time - there are lots of drivers to update.

The patch also fixes a possible memory leak: add_preferred_console()
can fail, but we don't kfree() options.

Signed-off-by: Sergey Senozhatsky <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
2017-10-12 12:22:04 -05:00
..
2017-10-04 17:34:41 +01:00
…
…
…
…
…
…
…
…
…
…
2017-10-04 17:11:53 -07:00
2017-09-29 14:19:44 +10:00
2017-08-29 13:46:35 +02:00
…
…
2017-10-12 12:22:04 -05:00
…
…
…
2017-09-19 08:36:19 +02:00
…
…
…
…
…
…
…
…
…
2017-08-30 14:03:42 -06:00
…
…
…