Merge branch 'net-smc-fixes-2022-04-08'

Karsten Graul says:

net/smc: fixes 2022-04-08

Patch 1 fixes two usages of snprintf() with non null-terminated
string which results into an out-of-bounds read.
Pach 2 fixes a syzbot finding where a pointer check was missed
before the call to dev_name().
Patch 3 fixes a crash when already released memory is used as
a function pointer.

Signed-off-by: Jakub Kicinski <>