kmodloader: Fix NULL pointer dereferences error
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 21 Jan 2024 23:39:50 +0000 (00:39 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Sun, 21 Jan 2024 23:51:56 +0000 (00:51 +0100)
commitb2f6da671f7c747fe9e65080c7c012b945cacb50
treede57a7a5557d9917c89df8572fad69cdd4c03e21
parentc006dccecb6f1cf694c9fb9efc6727cbd2ab9ae4
kmodloader: Fix NULL pointer dereferences error

Fix NULL pointer dereferences reported by Coverity Scan.
Return early instead of jumping to out and trying to fclose a NULL
pointer.

Fix
- CID 1586642: Null pointer dereferences (FORWARD_NULL)
- CID 1586641: Null pointer dereferences (FORWARD_NULL)

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
kmodloader.c