aboutsummaryrefslogtreecommitdiffstats
path: root/net/rxrpc/af_rxrpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/rxrpc/af_rxrpc.c')
-rw-r--r--net/rxrpc/af_rxrpc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c
index 74c064c0dfdd..05996d0dd828 100644
--- a/net/rxrpc/af_rxrpc.c
+++ b/net/rxrpc/af_rxrpc.c
@@ -26,7 +26,7 @@ MODULE_AUTHOR("Red Hat, Inc.");
26MODULE_LICENSE("GPL"); 26MODULE_LICENSE("GPL");
27MODULE_ALIAS_NETPROTO(PF_RXRPC); 27MODULE_ALIAS_NETPROTO(PF_RXRPC);
28 28
29unsigned rxrpc_debug; // = RXRPC_DEBUG_KPROTO; 29unsigned int rxrpc_debug; // = RXRPC_DEBUG_KPROTO;
30module_param_named(debug, rxrpc_debug, uint, S_IWUSR | S_IRUGO); 30module_param_named(debug, rxrpc_debug, uint, S_IWUSR | S_IRUGO);
31MODULE_PARM_DESC(debug, "RxRPC debugging mask"); 31MODULE_PARM_DESC(debug, "RxRPC debugging mask");
32 32
@@ -513,7 +513,7 @@ static int rxrpc_setsockopt(struct socket *sock, int level, int optname,
513 char __user *optval, unsigned int optlen) 513 char __user *optval, unsigned int optlen)
514{ 514{
515 struct rxrpc_sock *rx = rxrpc_sk(sock->sk); 515 struct rxrpc_sock *rx = rxrpc_sk(sock->sk);
516 unsigned min_sec_level; 516 unsigned int min_sec_level;
517 int ret; 517 int ret;
518 518
519 _enter(",%d,%d,,%d", level, optname, optlen); 519 _enter(",%d,%d,,%d", level, optname, optlen);
@@ -555,13 +555,13 @@ static int rxrpc_setsockopt(struct socket *sock, int level, int optname,
555 555
556 case RXRPC_MIN_SECURITY_LEVEL: 556 case RXRPC_MIN_SECURITY_LEVEL:
557 ret = -EINVAL; 557 ret = -EINVAL;
558 if (optlen != sizeof(unsigned)) 558 if (optlen != sizeof(unsigned int))
559 goto error; 559 goto error;
560 ret = -EISCONN; 560 ret = -EISCONN;
561 if (rx->sk.sk_state != RXRPC_UNCONNECTED) 561 if (rx->sk.sk_state != RXRPC_UNCONNECTED)
562 goto error; 562 goto error;
563 ret = get_user(min_sec_level, 563 ret = get_user(min_sec_level,
564 (unsigned __user *) optval); 564 (unsigned int __user *) optval);
565 if (ret < 0) 565 if (ret < 0)
566 goto error; 566 goto error;
567 ret = -EINVAL; 567 ret = -EINVAL;