mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 06:02:05 +00:00
ntb_hw_switchtec: Fix a minor issue in config_req_id_table()
The req_id_table_size field is 16-bit wide, use ioread16() to read the value. Signed-off-by: Kelvin Cao <kelvin.cao@microchip.com> Signed-off-by: Jon Mason <jdmason@kudzu.us>
This commit is contained in:
parent
1d3cfc2835
commit
8cd778650a
@ -955,7 +955,7 @@ static int config_req_id_table(struct switchtec_ntb *sndev,
|
||||
u32 error;
|
||||
u32 proxy_id;
|
||||
|
||||
if (ioread32(&mmio_ctrl->req_id_table_size) < count) {
|
||||
if (ioread16(&mmio_ctrl->req_id_table_size) < count) {
|
||||
dev_err(&sndev->stdev->dev,
|
||||
"Not enough requester IDs available.\n");
|
||||
return -EFAULT;
|
||||
|
Loading…
Reference in New Issue
Block a user