]> git.baikalelectronics.ru Git - kernel.git/commit
mctp i2c: Fix potential use-after-free
authorMatt Johnston <matt@codeconstruct.com.au>
Fri, 25 Feb 2022 05:39:37 +0000 (13:39 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 26 Feb 2022 06:23:29 +0000 (22:23 -0800)
commit31ecab5006cc2bb8890ca88e48ee5d114c9995c4
tree98f4322027d4904f8cc4c1f262c3b572eb49ae75
parentcf3e8929ff4e02e533b79e73cc904e261cf0e430
mctp i2c: Fix potential use-after-free

The skb is handed off to netif_rx() which may free it.
Found by Smatch.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/mctp/mctp-i2c.c