X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Fplatform%2Fx86%2Fhp-wmi.c;h=9e05af9c41cbcd129bc3912c4bff2b6b8ad61b96;hb=37d9a8c5ea8fc063841c133fc53cc168ee620762;hp=1dac659b5e0c84e7bc3ccefea144d6a3dc88993c;hpb=925d169f5b86fe57e2f5264ea574cce9a89b719d;p=karo-tx-linux.git diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c index 1dac659b5e0c..9e05af9c41cb 100644 --- a/drivers/platform/x86/hp-wmi.c +++ b/drivers/platform/x86/hp-wmi.c @@ -172,6 +172,8 @@ static int hp_wmi_perform_query(int query, int write, u32 *buffer, bios_return = *((struct bios_return *)obj->buffer.pointer); memcpy(buffer, &bios_return.value, sizeof(bios_return.value)); + + kfree(obj); return 0; }