diff options
| author | Guvenc Gulce <[email protected]> | 2021-06-25 15:11:02 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-06-25 18:53:51 +0000 |
| commit | 17081633e22d83be928a779fd7acd04b247dec90 (patch) | |
| tree | cbbad7d128615675594f5786c6fc745c2b72d30f /net/switchdev/switchdev.c | |
| parent | Merge tag 'wireless-drivers-next-2021-06-25' of git://git.kernel.org/pub/scm/... (diff) | |
| download | kernel-17081633e22d83be928a779fd7acd04b247dec90.tar.gz kernel-17081633e22d83be928a779fd7acd04b247dec90.zip | |
net/smc: Ensure correct state of the socket in send path
When smc_sendmsg() is called before the SMC socket initialization has
completed, smc_tx_sendmsg() will access un-initialized fields of the
SMC socket which results in a null-pointer dereference.
Fix this by checking the socket state first in smc_tx_sendmsg().
Fixes: e0e4b8fa5338 ("net/smc: Add SMC statistics support")
Reported-by: [email protected]
Reviewed-by: Karsten Graul <[email protected]>
Signed-off-by: Guvenc Gulce <[email protected]>
Signed-off-by: Karsten Graul <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
