]> 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)
commitf6caabcbf0ca53d2e2fb99c85955fc0e8e903c6c
tree98f4322027d4904f8cc4c1f262c3b572eb49ae75
parent675a73143b7ac29b864b27550eadacb17743ef9d
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