projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
[linux-2.6-microblaze.git]
/
net
/
rds
/
rdma.c
diff --git
a/net/rds/rdma.c
b/net/rds/rdma.c
index
1d0afb1
..
6f1a50d
100644
(file)
--- a/
net/rds/rdma.c
+++ b/
net/rds/rdma.c
@@
-565,6
+565,9
@@
int rds_rdma_extra_size(struct rds_rdma_args *args,
if (args->nr_local == 0)
return -EINVAL;
+ if (args->nr_local > UIO_MAXIOV)
+ return -EMSGSIZE;
+
iov->iov = kcalloc(args->nr_local,
sizeof(struct rds_iovec),
GFP_KERNEL);