From: Ben Hutchings <bhutchings@xxxxxxxxxxxxxx> Date: Thu, 21 Jul 2011 19:54:00 +0200 > 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@xxxxxxxxxxxxxxxx> > Signed-off-by: Ben Hutchings <bhutchings@xxxxxxxxxxxxxx> > Cc: stable@xxxxxxxxxx [2.6.37+] Applied to net-next-2.6, I left the CC: stable tag in there so -stable will pick it up once it hits Linus's tree during the merge window. Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html