aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/core-cdev.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2011-07-21 15:25:30 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-04 21:58:34 -0700
commit3de8ae6c0d1c0fb73243992adf87c7174028a531 (patch)
tree7751ec6367207d85a23efa931fda82c0c7903662 /drivers/firewire/core-cdev.c
parent468e4e387026f558ae1f1ac0fcc2f8985d4518b8 (diff)
downloadkernel_samsung_aries-3de8ae6c0d1c0fb73243992adf87c7174028a531.zip
kernel_samsung_aries-3de8ae6c0d1c0fb73243992adf87c7174028a531.tar.gz
kernel_samsung_aries-3de8ae6c0d1c0fb73243992adf87c7174028a531.tar.bz2
ethtool: Allow zero-length register dumps again
commit 67ae7cf1eeda777f79259c4c6cb17a0bd28dee71 upstream. Some drivers (ab)use the ethtool_ops::get_regs operation to expose only a hardware revision ID. Commit a77f5db361ed9953b5b749353ea2c7fed2bf8d93 ('ethtool: Allocate register dump buffer with vmalloc()') had the side-effect of breaking these, as vmalloc() returns a null pointer for size=0 whereas kmalloc() did not. For backward-compatibility, allow zero-length dumps again. Reported-by: Kalle Valo <kvalo@qca.qualcomm.com> Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/firewire/core-cdev.c')
0 files changed, 0 insertions, 0 deletions