Commit de47b69c authored by Jesper Juhl's avatar Jesper Juhl Committed by Len Brown

asus_acpi: fix possible double free (found by Coverity)

Signed-off-by: default avatarJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 7a883eaf
...@@ -1192,6 +1192,7 @@ static int asus_hotk_get_info(void) ...@@ -1192,6 +1192,7 @@ static int asus_hotk_get_info(void)
break; break;
default: default:
kfree(model); kfree(model);
model = NULL;
break; break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment