hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/parisc/led.c
....@@ -56,8 +56,8 @@
5656 static int led_type __read_mostly = -1;
5757 static unsigned char lastleds; /* LED state from most recent update */
5858 static unsigned int led_heartbeat __read_mostly = 1;
59
-static unsigned int led_diskio __read_mostly = 1;
60
-static unsigned int led_lanrxtx __read_mostly = 1;
59
+static unsigned int led_diskio __read_mostly;
60
+static unsigned int led_lanrxtx __read_mostly;
6161 static char lcd_text[32] __read_mostly;
6262 static char lcd_text_default[32] __read_mostly;
6363 static int lcd_no_led_support __read_mostly = 0; /* KittyHawk doesn't support LED on its LCD */
....@@ -137,6 +137,9 @@
137137
138138 /* Create the work queue and queue the LED task */
139139 led_wq = create_singlethread_workqueue("led_wq");
140
+ if (!led_wq)
141
+ return -ENOMEM;
142
+
140143 queue_delayed_work(led_wq, &led_task, 0);
141144
142145 return 0;