[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1458688620-14219-1-git-send-email-colin.king@canonical.com>
Date: Tue, 22 Mar 2016 23:17:00 +0000
From: Colin King <colin.king@...onical.com>
To: Lauro Ramos Venancio <lauro.venancio@...nbossa.org>,
Aloisio Almeida Jr <aloisio.almeida@...nbossa.org>,
Samuel Ortiz <sameo@...ux.intel.com>,
Robert Dolca <robert.dolca@...el.com>,
linux-wireless@...r.kernel.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] NFC: set info->ram_patch to NULL when it is released
From: Colin Ian King <colin.king@...onical.com>
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@...onical.com>
---
drivers/nfc/fdp/fdp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nfc/fdp/fdp.c b/drivers/nfc/fdp/fdp.c
index ccb07a1..177ac9a 100644
--- a/drivers/nfc/fdp/fdp.c
+++ b/drivers/nfc/fdp/fdp.c
@@ -344,7 +344,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;
}
}
--
2.7.3
Powered by blists - more mailing lists