summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/mcdi.c
diff options
context:
space:
mode:
authorBen Hutchings2012-09-19 03:46:37 +0200
committerBen Hutchings2012-09-19 03:54:11 +0200
commit576eda8b08e00cbb0cf29ba777c2cb461c98cbbc (patch)
tree673c305d7ec548cfa4bd06dd64a83f41c09404fe /drivers/net/ethernet/sfc/mcdi.c
parentsfc: Allow efx_mcdi_rpc to be called in two parts (diff)
downloadkernel-qcow2-linux-576eda8b08e00cbb0cf29ba777c2cb461c98cbbc.tar.gz
kernel-qcow2-linux-576eda8b08e00cbb0cf29ba777c2cb461c98cbbc.tar.xz
kernel-qcow2-linux-576eda8b08e00cbb0cf29ba777c2cb461c98cbbc.zip
sfc: Fix maximum array sizes for various MCDI commands
The maximum array sizes have been calculated on the basis of a maximum SDU size of 255 bytes, whereas the actual maximum is 252 bytes. Constructing a larger SDU will result in a BUG_ON in efx_mcdi_copyin. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/mcdi.c')
0 files changed, 0 insertions, 0 deletions