mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
rds: signedness bug
In the original code if the copy_from_user() fails in rds_rdma_pages() then the error handling fails and we get a stack trace from kmalloc(). Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0746556bea
commit
9b9d2e00bf
1 changed files with 1 additions and 1 deletions
|
|
@ -522,7 +522,7 @@ int rds_cmsg_rdma_args(struct rds_sock *rs, struct rds_message *rm,
|
|||
struct rds_rdma_args *args;
|
||||
struct rds_iovec vec;
|
||||
struct rm_rdma_op *op = &rm->rdma;
|
||||
unsigned int nr_pages;
|
||||
int nr_pages;
|
||||
unsigned int nr_bytes;
|
||||
struct page **pages = NULL;
|
||||
struct rds_iovec __user *local_vec;
|
||||
|
|
|
|||
Loading…
Reference in a new issue