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:
@@ -1192,6 +1192,7 @@ static int asus_hotk_get_info(void)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
kfree(model);
|
kfree(model);
|
||||||
|
model = NULL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user