diff options
author | Arnd Bergmann <arnd@arndb.de> | 2013-02-28 21:53:01 +0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2013-02-28 21:53:01 +0400 |
commit | 168268a225d24da3768a88c1029fb3014b0837ca (patch) | |
tree | afde019a1ac79366df0b96a2fcc8ba50bc5298fa /net/ipv6/ip6mr.c | |
parent | 04ee16bdf486061147c608410c2c9181352aaa3a (diff) | |
parent | 6f1989bc982bc176b0d63e028e9b7f23ae1b4583 (diff) | |
download | linux-168268a225d24da3768a88c1029fb3014b0837ca.tar.xz |
Merge 'mmc/upstream' into late/mvebu2
These patches from the mmc tree were merged into v3.9 already
and the later mvebu patches depend on them.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'net/ipv6/ip6mr.c')
-rw-r--r-- | net/ipv6/ip6mr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c index 26dcdec9e3a5..8fd154e5f079 100644 --- a/net/ipv6/ip6mr.c +++ b/net/ipv6/ip6mr.c @@ -1710,6 +1710,9 @@ int ip6_mroute_setsockopt(struct sock *sk, int optname, char __user *optval, uns return -EINVAL; if (get_user(v, (u32 __user *)optval)) return -EFAULT; + /* "pim6reg%u" should not exceed 16 bytes (IFNAMSIZ) */ + if (v != RT_TABLE_DEFAULT && v >= 100000000) + return -EINVAL; if (sk == mrt->mroute6_sk) return -EBUSY; |