Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f36acc33 authored by Colin Ian King's avatar Colin Ian King Committed by Samuel Ortiz
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 8186f6e3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}
}