Commit 2c710a6c authored by Vikram Narayanan's avatar Vikram Narayanan
Browse files

lcd/ixgbe: Fix null pointer crash



Handle the case if lcd has not started at all. In that case, current->lcd would
be null.

Signed-off-by: Vikram Narayanan's avatarVikram Narayanan <vikram186@gmail.com>
parent a061770e
......@@ -166,7 +166,8 @@ int boot_lcd_thread(void *data)
lcd_destroy_module_klcd(net_klcd, "lcd_test_mod_ixgbe_net_klcd");
lcd_cap_delete(ixgbe_lcd);
if (current->lcd)
lcd_cap_delete(ixgbe_lcd);
lcd_destroy_create_ctx(ixgbe_ctx);
msleep(2000);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment