Re: net/mctp/test/utils.c:15 mctp_test_dev_tx() error: use kfree_skb() here instead of kfree(skb)

From: Jeremy Kerr
Date: Sun Nov 28 2021 - 21:26:23 EST


Hi Dan,

> smatch warnings:
> net/mctp/test/utils.c:15 mctp_test_dev_tx() error: use kfree_skb() here instead of kfree(skb)

Thanks for the report! I've sent a fix, you're CCed.

However, I can 't seem to recreate the smatch warning; could you include
the build command you're using for these? I've tried with

make [...] C=1 CHECK=/path/to/smatch

using smatch 4f2585888, but that doesn't report the error you've listed
there. Do I need any specific CHECKFLAGS?

Cheers,


Jeremy