]> git.itanic.dy.fi Git - linux-stable/commit
net/rds: fix WARNING in rds_conn_connect_if_down
authorEdward Adam Davis <eadavis@qq.com>
Tue, 5 Mar 2024 00:13:08 +0000 (08:13 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Mar 2024 11:58:42 +0000 (11:58 +0000)
commitc055fc00c07be1f0df7375ab0036cebd1106ed38
treea1cf5548e44112a16bcc01c3bef354642e22ec83
parentf287d6aafda7e59fddc9316fe6f0c46c64847f10
net/rds: fix WARNING in rds_conn_connect_if_down

If connection isn't established yet, get_mr() will fail, trigger connection after
get_mr().

Fixes: 584a8279a44a ("RDS: RDMA: return appropriate error on rdma map failures")
Reported-and-tested-by: syzbot+d4faee732755bba9838e@syzkaller.appspotmail.com
Signed-off-by: Edward Adam Davis <eadavis@qq.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/rdma.c
net/rds/send.c