projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
471a24c
)
[ATM] suni: cast arg properly in SONET_SETFRAMING
author
Alexey Dobriyan
<adobriyan@gmail.com>
Tue, 21 Mar 2006 06:35:16 +0000
(22:35 -0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 21 Mar 2006 06:35:16 +0000
(22:35 -0800)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/suni.c
patch
|
blob
|
history
diff --git
a/drivers/atm/suni.c
b/drivers/atm/suni.c
index
06817de
..
b1d063c
100644
(file)
--- a/
drivers/atm/suni.c
+++ b/
drivers/atm/suni.c
@@
-188,7
+188,7
@@
static int suni_ioctl(struct atm_dev *dev,unsigned int cmd,void __user *arg)
case SONET_GETDIAG:
return get_diag(dev,arg);
case SONET_SETFRAMING:
- if (arg != SONET_FRAME_SONET) return -EINVAL;
+ if (
(int)(unsigned long)
arg != SONET_FRAME_SONET) return -EINVAL;
return 0;
case SONET_GETFRAMING:
return put_user(SONET_FRAME_SONET,(int __user *)arg) ?