hfi1/ioctl: only forward ioctl if hfi1_file_ioctl didn't handle it

Conflicts:
	kernel/syscall.c
This commit is contained in:
Dominique Martinet
2017-09-19 12:50:13 +09:00
committed by Balazs Gerofi
parent 1847a3ac11
commit 159c18b98b
2 changed files with 15 additions and 11 deletions

View File

@@ -424,7 +424,7 @@ long hfi1_file_ioctl(void *private_data, unsigned int cmd,
struct hfi1_ctxtdata *uctxt = fd->uctxt;
struct hfi1_tid_info tinfo;
unsigned long addr;
int ret = 0;
int ret = -ENOTSUPP;
hfi1_cdbg(IOCTL, "IOCTL recv: 0x%x", cmd);
if (cmd != HFI1_IOCTL_ASSIGN_CTXT &&
@@ -649,7 +649,7 @@ long hfi1_file_ioctl(void *private_data, unsigned int cmd,
break;
default:
return -EINVAL;
return -ENOTSUPP;
}
return ret;
}