Skip to content

Commit f36acc3

Browse files
Colin Ian KingSamuel Ortiz
authored andcommitted
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: Colin Ian King <colin.king@canonical.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
1 parent 8186f6e commit f36acc3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/nfc/fdp/fdp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ static void fdp_nci_release_firmware(struct nci_dev *ndev)
345345

346346
if (info->ram_patch) {
347347
release_firmware(info->ram_patch);
348-
info->otp_patch = NULL;
348+
info->ram_patch = NULL;
349349
}
350350
}
351351

0 commit comments

Comments
 (0)