If alloc_canfd_skb() returns NULL, 'cfg' is an uninitialized variable, so we
should check 'skb' rather than 'cfd' after calling alloc_canfd_skb(priv->ndev,
&cfd).
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
mcp251xfd-core.c | ||
mcp251xfd-crc16.c | ||
mcp251xfd-regmap.c | ||
mcp251xfd.h |