kernel/efirt: Fix a kfree(NULL) panic when deleting a UEFI variable.
authorSascha Wildner <saw@online.de>
Tue, 2 Jun 2020 18:24:30 +0000 (20:24 +0200)
committerSascha Wildner <saw@online.de>
Tue, 2 Jun 2020 18:24:30 +0000 (20:24 +0200)
commitbe1ad8f1dafbaed56d3315ffb6e882027ffd6f0b
tree8de3da1d23968b78d0bb5d59c89bb2999d52d507
parent4ce1b01662e01b4aeb3dbaf5e68504c3aa2a1581
kernel/efirt: Fix a kfree(NULL) panic when deleting a UEFI variable.

There is no data in this case. Rest of function is ok, just a forgotten
datasize check.
sys/dev/misc/efirt/efidev.c