summaryrefslogtreecommitdiffstats
path: root/net/rxrpc/local_object.c
diff options
context:
space:
mode:
authorDavid Howells2016-09-08 12:10:11 +0200
committerDavid Howells2016-09-08 12:10:11 +0200
commitcf13258fd4cb86478dfcb7e2c93a0d844307abc6 (patch)
tree6d2b363fc9413a7a65582b02fa12ad96988e3a1e /net/rxrpc/local_object.c
parentnet: xfrm: Change u32 sysctl entries to use proc_douintvec (diff)
downloadkernel-qcow2-linux-cf13258fd4cb86478dfcb7e2c93a0d844307abc6.tar.gz
kernel-qcow2-linux-cf13258fd4cb86478dfcb7e2c93a0d844307abc6.tar.xz
kernel-qcow2-linux-cf13258fd4cb86478dfcb7e2c93a0d844307abc6.zip
rxrpc: Fix ASSERTCMP and ASSERTIFCMP to handle signed values
Fix ASSERTCMP and ASSERTIFCMP to be able to handle signed values by casting both parameters to the type of the first before comparing. Without this, both values are cast to unsigned long, which means that checks for values less than zero don't work. The downside of this is that the state enum values in struct rxrpc_call and struct rxrpc_connection can't be bitfields as __typeof__ can't handle them. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/local_object.c')
0 files changed, 0 insertions, 0 deletions