]> git.baikalelectronics.ru Git - kernel.git/commit
console: Propagate error code from console ->setup()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 18 Jun 2020 16:47:50 +0000 (19:47 +0300)
committerPetr Mladek <pmladek@suse.com>
Thu, 25 Jun 2020 12:24:07 +0000 (14:24 +0200)
commit6c10ae3818742cd793ff0e586c3a6492b296a17d
tree40469f0d99966db0bfce06266551bf6164a06012
parent0c43b96c2db38623557ebbb3de7e19725e41fc0a
console: Propagate error code from console ->setup()

Since console ->setup() hook returns meaningful error codes,
propagate it to the caller of try_enable_new_console().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20200618164751.56828-6-andriy.shevchenko@linux.intel.com
kernel/printk/printk.c