[ATM] suni: cast arg properly in SONET_SETFRAMING
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>
This commit is contained in:
parent
471a24c058
commit
6613f82dd2
@ -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) ?
|
||||
|
Loading…
x
Reference in New Issue
Block a user