File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -1185,14 +1185,13 @@ static long slgt_compat_ioctl(struct tty_struct *tty,
1185
1185
unsigned int cmd , unsigned long arg )
1186
1186
{
1187
1187
struct slgt_info * info = tty -> driver_data ;
1188
- int rc = - ENOIOCTLCMD ;
1188
+ int rc ;
1189
1189
1190
1190
if (sanity_check (info , tty -> name , "compat_ioctl" ))
1191
1191
return - ENODEV ;
1192
1192
DBGINFO (("%s compat_ioctl() cmd=%08X\n" , info -> device_name , cmd ));
1193
1193
1194
1194
switch (cmd ) {
1195
-
1196
1195
case MGSL_IOCSPARAMS32 :
1197
1196
rc = set_params32 (info , compat_ptr (arg ));
1198
1197
break ;
@@ -1212,18 +1211,11 @@ static long slgt_compat_ioctl(struct tty_struct *tty,
1212
1211
case MGSL_IOCWAITGPIO :
1213
1212
case MGSL_IOCGXSYNC :
1214
1213
case MGSL_IOCGXCTRL :
1215
- case MGSL_IOCSTXIDLE :
1216
- case MGSL_IOCTXENABLE :
1217
- case MGSL_IOCRXENABLE :
1218
- case MGSL_IOCTXABORT :
1219
- case TIOCMIWAIT :
1220
- case MGSL_IOCSIF :
1221
- case MGSL_IOCSXSYNC :
1222
- case MGSL_IOCSXCTRL :
1223
- rc = ioctl (tty , cmd , arg );
1214
+ rc = ioctl (tty , cmd , (unsigned long )compat_ptr (arg ));
1224
1215
break ;
1216
+ default :
1217
+ rc = ioctl (tty , cmd , arg );
1225
1218
}
1226
-
1227
1219
DBGINFO (("%s compat_ioctl() cmd=%08X rc=%d\n" , info -> device_name , cmd , rc ));
1228
1220
return rc ;
1229
1221
}
You can’t perform that action at this time.
0 commit comments