asus_acpi: fix possible double free (found by Coverity)
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
7a883eaf62
commit
de47b69c7b
|
@ -1192,6 +1192,7 @@ static int asus_hotk_get_info(void)
|
|||
break;
|
||||
default:
|
||||
kfree(model);
|
||||
model = NULL;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue