VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> 2021-07-28 08:49:09 +0200 committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-08-04 12:47:50 +0200 commit: ca324a215bf9f421f36f9634057458557c66ca7b parent: caed0df2e52daff8f7a3152bba9eca9fbf20e8eb
Commit Summary:
nfc: nfcsim: fix use after free during module unload
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/drivers/nfc/nfcsim.c b/drivers/nfc/nfcsim.c
index a9864fcdfba6..dd27c85190d3 100644
--- a/drivers/nfc/nfcsim.c
+++ b/drivers/nfc/nfcsim.c
@@ -192,8 +192,7 @@ static void nfcsim_recv_wq(struct work_struct *work)
 
 		if (!IS_ERR(skb))
 			dev_kfree_skb(skb);
-
-		skb = ERR_PTR(-ENODEV);
+		return;
 	}
 
 	dev->cb(dev->nfc_digital_dev, dev->arg, skb);