aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-imx.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2021-10-30 10:18:49 -0700
committerDavid S. Miller <[email protected]>2021-11-01 13:26:07 +0000
commit095cfcfe13e5a6599cf0a41fe1e8bbfa76cd1c9d (patch)
tree28b02c6b4d14e41257ee0d8883d774e17a8d290c /drivers/usb/cdns3/cdns3-imx.c
parentf49deaa64af10276ef0c9a09558152f990b5f3b1 (diff)
ethtool: handle info/flash data copying outside rtnl_lock
We need to increase the lifetime of the data for .get_info and .flash_update beyond their handlers inside rtnl_lock. Allocate a union on the heap and use it instead. Note that we now copy the ethcmd before we lookup dev, hopefully there is no crazy user space depending on error codes. Signed-off-by: Jakub Kicinski <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions