Fix kernel NULL pointer dereference

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>