aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorPeng Li <[email protected]>2019-07-04 22:04:28 +0800
committerDavid S. Miller <[email protected]>2019-07-05 15:39:38 -0700
commit892951524647d593d9f5e540a56fef4e52b95c03 (patch)
treec49b0b72c33729b4e41f42528f7e16c83461366e /drivers/fpga/fpga-bridge.c
parentb9a8f88373c586e357c8c203b657407437040e40 (diff)
net: hns3: set maximum length to resp_data_len for exceptional case
If HCLGE_MBX_MAX_RESP_DATA_SIZE > HCLGE_MBX_MAX_RESP_DATA_SIZE, the memcpy will cause out of memory. So this patch just set resp_data_len to the maximum length for this case. Signed-off-by: Peng Li <[email protected]> Signed-off-by: Huazhong Tan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions