]> asedeno.scripts.mit.edu Git - linux.git/commit
rds: send: Fix dead code in rds_sendmsg
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 25 Jul 2018 15:22:27 +0000 (10:22 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jul 2018 05:37:31 +0000 (22:37 -0700)
commitdc66fe43b7ebdb53628dcbc1f8f15de3e000aacf
tree193a3416a31f937fbe801441c2e922a1f1f07cab
parentba7d7e2677c0953b251c36588b15f5f442e59c84
rds: send: Fix dead code in rds_sendmsg

Currently, code at label *out* is unreachable. Fix this by updating
variable *ret* with -EINVAL, so the jump to *out* can be properly
executed instead of directly returning from function.

Addresses-Coverity-ID: 1472059 ("Structurally dead code")
Fixes: 1e2b44e78eea ("rds: Enable RDS IPv6 support")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/send.c