提交 f36acc33 编写于 作者: C Colin Ian King 提交者: Samuel Ortiz

NFC: set info->ram_patch to NULL when it is released

When info->ram_patch is released info->otp_patch is being set
to NULL rather than info->ram_patch. I believe this is a cut-n-paste
bug from almost identical code proceeding it that uses the same
idiom for info->otp_patch.
Signed-off-by: NColin Ian King <colin.king@canonical.com>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 8186f6e3
...@@ -345,7 +345,7 @@ static void fdp_nci_release_firmware(struct nci_dev *ndev) ...@@ -345,7 +345,7 @@ static void fdp_nci_release_firmware(struct nci_dev *ndev)
if (info->ram_patch) { if (info->ram_patch) {
release_firmware(info->ram_patch); release_firmware(info->ram_patch);
info->otp_patch = NULL; info->ram_patch = NULL;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册