Skip to content

Commit e6eeb28

Browse files
JuliaLawalldavem330
authored andcommitted
Revert "l2tp: constify inet6_protocol structures"
This reverts commit d04916a. inet6_add_protocol and inet6_del_protocol include casts that remove the effect of the const annotation on their parameter, leading to possible runtime crashes. Reported-by: Eric Dumazet <[email protected]> Signed-off-by: Julia Lawall <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 39294c3 commit e6eeb28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/l2tp/l2tp_ip6.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ static struct inet_protosw l2tp_ip6_protosw = {
788788
.ops = &l2tp_ip6_ops,
789789
};
790790

791-
static const struct inet6_protocol l2tp_ip6_protocol = {
791+
static struct inet6_protocol l2tp_ip6_protocol __read_mostly = {
792792
.handler = l2tp_ip6_recv,
793793
};
794794

0 commit comments

Comments
 (0)