From: Colin Ian King Date: Tue, 22 Mar 2016 23:17:00 +0000 (+0000) Subject: NFC: set info->ram_patch to NULL when it is released X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f36acc334fb86da3761583dce50faa17a4cbd4de;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Samuel Ortiz --- diff --git a/drivers/nfc/fdp/fdp.c b/drivers/nfc/fdp/fdp.c index e44a7a2f4061..d93d3145365f 100644 --- a/drivers/nfc/fdp/fdp.c +++ b/drivers/nfc/fdp/fdp.c @@ -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; } }