Commit cf9735f0 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] 64bit fix in cycx_x25.c

comparing u32 with ~0UL is wrong
Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
parent 04f29e41
...@@ -1195,7 +1195,7 @@ static int x25_place_call(struct cycx_device *card, ...@@ -1195,7 +1195,7 @@ static int x25_place_call(struct cycx_device *card,
remotelen = strlen(chan->addr); remotelen = strlen(chan->addr);
u8 key; u8 key;
if (card->u.x.connection_keys == ~0UL) { if (card->u.x.connection_keys == ~0U) {
printk(KERN_INFO "%s: too many simultaneous connection " printk(KERN_INFO "%s: too many simultaneous connection "
"requests!\n", card->devname); "requests!\n", card->devname);
return -EAGAIN; return -EAGAIN;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment