mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
commit67ae7cf1eeupstream. Some drivers (ab)use the ethtool_ops::get_regs operation to expose only a hardware revision ID. Commita77f5db361('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>