lkml.org 
[lkml]   [2016]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 06/13] rxrpc: Fix defined range for /proc/sys/net/rxrpc/rx_mtu
    From
    Date
    The upper bound of the defined range for rx_mtu is being set in the same
    member as the lower bound (extra1) rather than the correct place (extra2).
    I'm not entirely sure why this compiles.

    Signed-off-by: David Howells <dhowells@redhat.com>
    ---

    net/rxrpc/sysctl.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/net/rxrpc/sysctl.c b/net/rxrpc/sysctl.c
    index 50a98a910eb1..093547ac2bcd 100644
    --- a/net/rxrpc/sysctl.c
    +++ b/net/rxrpc/sysctl.c
    @@ -115,7 +115,7 @@ static struct ctl_table rxrpc_sysctl_table[] = {
    .mode = 0644,
    .proc_handler = proc_dointvec_minmax,
    .extra1 = (void *)&one,
    - .extra1 = (void *)&n_65535,
    + .extra2 = (void *)&n_65535,
    },
    {
    .procname = "rx_jumbo_max",
    \
     
     \ /
      Last update: 2016-03-04 18:21    [W:2.568 / U:0.056 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site