summaryrefslogtreecommitdiff
path: root/net/802/mrp.c
diff options
context:
space:
mode:
authorKarsten Graul <kgraul@linux.ibm.com>2022-04-08 18:10:34 +0300
committerJakub Kicinski <kuba@kernel.org>2022-04-12 04:28:03 +0300
commitd22f4f977236f97e01255a80bca2ea93a8094fc8 (patch)
tree44681c5acf227653aaf1a6dd1dae574c8f024b3f /net/802/mrp.c
parentb1871fd48efc567650dbdc974e5a2342a03fe0d2 (diff)
downloadlinux-d22f4f977236f97e01255a80bca2ea93a8094fc8.tar.xz
net/smc: Fix NULL pointer dereference in smc_pnet_find_ib()
dev_name() was called with dev.parent as argument but without to NULL-check it before. Solve this by checking the pointer before the call to dev_name(). Fixes: af5f60c7e3d5 ("net/smc: allow PCI IDs as ib device names in the pnet table") Reported-by: syzbot+03e3e228510223dabd34@syzkaller.appspotmail.com Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/802/mrp.c')
0 files changed, 0 insertions, 0 deletions