commit | ddcc9b7feb451c5c8145d11879a6585a4ddd317d | [log] [tgz] |
---|---|---|
author | Karsten Graul <kgraul@linux.ibm.com> | Tue Sep 15 22:57:09 2020 +0200 |
committer | David S. Miller <davem@davemloft.net> | Wed Sep 16 17:30:16 2020 -0700 |
tree | c54b68fed6a535142fecd440b1abd72478ffe8db | |
parent | d5bf31ddd8b21d2aa0af2500ff4fcda068ad50c7 [diff] |
net/smc: check variable before dereferencing in smc_close.c smc->clcsock and smc->clcsock->sk are used before the check if they can be dereferenced. Fix this by checking the variables first. Fixes: a60a2b1e0af1 ("net/smc: reduce active tcp_listen workers") Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>