aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rdma/hfi1/file_ops.c
diff options
context:
space:
mode:
authorDean Luick <dean.luick@intel.com>2016-02-03 14:34:58 -0800
committerDoug Ledford <dledford@redhat.com>2016-03-10 20:37:54 -0500
commitd24bc6481e376da3b7f226b57b39b0ae4088b8d9 (patch)
treede5d0979c5620d077be6ae193a793e70956c9d95 /drivers/staging/rdma/hfi1/file_ops.c
parentstaging/rdma/hfi1: Reduce syslog message severity and provide speed information (diff)
downloadlinux-dev-d24bc6481e376da3b7f226b57b39b0ae4088b8d9.tar.xz
linux-dev-d24bc6481e376da3b7f226b57b39b0ae4088b8d9.zip
staging/rdma/hfi1: Use device file minor to identify EPROM
When writing to the EPROM, the driver will always use the "first" device. This is incorrect for multiple cards. Use the device file minor to determine the device to use. Reject the generic device file. Reviewed-by: Mitko Haralanov <mitko.haralanov@intel.com> Signed-off-by: Dean Luick <dean.luick@intel.com> Signed-off-by: Jubin John <jubin.john@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/staging/rdma/hfi1/file_ops.c')
-rw-r--r--drivers/staging/rdma/hfi1/file_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rdma/hfi1/file_ops.c b/drivers/staging/rdma/hfi1/file_ops.c
index 2de9032857d3..cc681f7bc570 100644
--- a/drivers/staging/rdma/hfi1/file_ops.c
+++ b/drivers/staging/rdma/hfi1/file_ops.c
@@ -409,7 +409,7 @@ static ssize_t hfi1_file_write(struct file *fp, const char __user *data,
case HFI1_CMD_EP_ERASE_RANGE:
case HFI1_CMD_EP_READ_RANGE:
case HFI1_CMD_EP_WRITE_RANGE:
- ret = handle_eprom_command(&cmd);
+ ret = handle_eprom_command(fp, &cmd);
break;
}