Merge "firmware_class: Avoid memory leak when FW_OPT_NOCACHE is set"

This commit is contained in:
Linux Build Service Account 2017-06-18 09:47:19 -07:00 committed by Gerrit - the friendly Code Review server
commit 4af98252af

View file

@ -295,6 +295,7 @@ static void fw_free_buf(struct firmware_buf *buf)
{
struct firmware_cache *fwc = buf->fwc;
if (!fwc) {
kfree_const(buf->fw_id);
kfree(buf);
return;
}