net: sctp: only warn in proc_sctp_do_alpha_beta if write
authorDaniel Borkmann <dborkman@redhat.com>
Mon, 30 Jun 2014 11:52:09 +0000 (13:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jul 2014 01:44:07 +0000 (18:44 -0700)
commiteaea2da7286ebc56d557b40ad7e59e715a84e4a0
tree1507ed91bbbaec02273bf493fa13c2d0a383b6be
parent8f61059a96c2a29c1cc5a39dfe23d06ef5b4b065
net: sctp: only warn in proc_sctp_do_alpha_beta if write

Only warn if the value is written to alpha or beta. We don't care
emitting a one-time warning when only reading it.

Reported-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Reviewed-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sysctl.c