RDS: Return -EINVAL if rds_rdma_pages returns an error
authorAndy Grover <andy.grover@oracle.com>
Thu, 28 Oct 2010 15:40:56 +0000 (15:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Oct 2010 23:34:16 +0000 (16:34 -0700)
commita09f69c49b84b161ebd4dd09d3cce1b68297f1d3
tree295290736f0a4dbbfc495e035adbbe0cafe447e4
parent1b1f693d7ad6d193862dcb1118540a030c5e761f
RDS: Return -EINVAL if rds_rdma_pages returns an error

rds_cmsg_rdma_args would still return success even if rds_rdma_pages
returned an error (or overflowed).

Signed-off-by: Andy Grover <andy.grover@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/rdma.c