aboutsummaryrefslogtreecommitdiff
path: root/net/bluetooth
diff options
context:
space:
mode:
authorSabrina Dubroca <sd@queasysnail.net>2018-06-05 15:01:59 +0200
committerMoyster <oysterized@gmail.com>2019-05-03 19:24:03 +0200
commitc3f8270f42a89e7c01525b7725e41671351f07ed (patch)
treea7fc9b1036a65cd9df1d65f039cb66e13bda95e4 /net/bluetooth
parent550c5b8cb7aceb809ab5d0d36487c914bdc0c65a (diff)
ip6mr: only set ip6mr_table from setsockopt when ip6mr_new_table succeeds
commit 848235edb5c93ed086700584c8ff64f6d7fc778d upstream. Currently, raw6_sk(sk)->ip6mr_table is set unconditionally during ip6_mroute_setsockopt(MRT6_TABLE). A subsequent attempt at the same setsockopt will fail with -ENOENT, since we haven't actually created that table. A similar fix for ipv4 was included in commit 5e1859fbcc3c ("ipv4: ipmr: various fixes and cleanups"). Fixes: d1db275dd3f6 ("ipv6: ip6mr: support multiple tables") Change-Id: I3560d6611dfc1e9ef9c06a465f49af358c58c279 Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'net/bluetooth')
0 files changed, 0 insertions, 0 deletions