Skip to content

Commit

Permalink
NFC: set info->ram_patch to NULL when it is released
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
  • Loading branch information
Colin Ian King authored and Samuel Ortiz committed Jul 4, 2016
1 parent 8186f6e commit f36acc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nfc/fdp/fdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ static void fdp_nci_release_firmware(struct nci_dev *ndev)

if (info->ram_patch) {
release_firmware(info->ram_patch);
info->otp_patch = NULL;
info->ram_patch = NULL;
}
}

Expand Down

0 comments on commit f36acc3

Please sign in to comment.