In the Linux kernel, the following vulnerability has been resolved:
net/smc: Fix NULL pointer dereferencing in smcvlanby_tcpsk()
Coverity reports a possible NULL dereferencing problem:
in smcvlanbytcpsk(): 6. returnednull: netdevlowergetnext returns NULL (checked 29 out of 30 times). 7. varassigned: Assigning: ndev = NULL return value from netdevlowergetnext. 1623 ndev = (struct netdevice *)netdevlowergetnext(ndev, &lower); CID 1468509 (#1 of 1): Dereference null return value (NULLRETURNS) 8. dereference: Dereferencing a pointer that might be NULL ndev when calling isvlandev. 1624 if (isvlandev(ndev)) {
Remove the manual implementation and use netdevwalkalllowerdev() to iterate over the lower devices. While on it remove an obsolete function parameter comment.