Top: Use GFP_ATOMIC flag in kmalloc

In order to move kmalloc to an atomic context,
it should be called with the GFP_ATOMIC flag and within a spinlock.

Bug: 315438415
Test: GCA_SMOKE, CTS
Change-Id: Idfec377b3773a7aa06db2da5ca9cdd6180dd785b
Signed-off-by: Nick Chung <nickchung@google.com>
(cherry picked from commit ccfb61d41a2961cbacbb2be8b1488447433f04e0)
diff --git a/lwis_device_top.c b/lwis_device_top.c
index e4f1f0d..3bfd0c1 100644
--- a/lwis_device_top.c
+++ b/lwis_device_top.c
@@ -114,7 +114,7 @@
 	struct lwis_top_device *lwis_top_dev =
 		container_of(lwis_dev, struct lwis_top_device, base_dev);
 	struct lwis_event_subscriber_list *event_subscriber_list =
-		kmalloc(sizeof(struct lwis_event_subscriber_list), GFP_KERNEL);
+		kmalloc(sizeof(struct lwis_event_subscriber_list), GFP_ATOMIC);
 	if (!event_subscriber_list) {
 		return NULL;
 	}
@@ -595,4 +595,4 @@
 {
 	platform_driver_unregister(&lwis_driver);
 	return 0;
-}
\ No newline at end of file
+}