rxrpc: Fix listen() setting the bar too high for the prealloc rings
[linux-2.6-microblaze.git] / net / rxrpc / sysctl.c
index 540351d..555e091 100644 (file)
@@ -12,7 +12,7 @@
 
 static struct ctl_table_header *rxrpc_sysctl_reg_table;
 static const unsigned int four = 4;
-static const unsigned int thirtytwo = 32;
+static const unsigned int max_backlog = RXRPC_BACKLOG_MAX - 1;
 static const unsigned int n_65535 = 65535;
 static const unsigned int n_max_acks = RXRPC_RXTX_BUFF_SIZE - 1;
 static const unsigned long one_jiffy = 1;
@@ -89,7 +89,7 @@ static struct ctl_table rxrpc_sysctl_table[] = {
                .mode           = 0644,
                .proc_handler   = proc_dointvec_minmax,
                .extra1         = (void *)&four,
-               .extra2         = (void *)&thirtytwo,
+               .extra2         = (void *)&max_backlog,
        },
        {
                .procname       = "rx_window_size",