commit | 418e8f3d7ef4a30d4b5c84440641c9792a7f83f1 | [log] [tgz] |
---|---|---|
author | Laurent Riffard <laurent.riffard@free.fr> | Sat Nov 18 12:03:04 2006 +0100 |
committer | Jeff Garzik <jeff@garzik.org> | Thu Nov 30 06:14:06 2006 -0500 |
tree | 9a594b5625f4a90509ed997647f7698e214fafe4 | |
parent | c1cb0b77f905a2f5f297e91fafbe766acc143891 [diff] |
[PATCH] bonding: fix an oops when slave device does not provide get_stats Bonding driver unconditionnaly dereference get_stats function pointer for each of its slave device. This patch - adds a check for NULL dev->get_stats pointer in bond_get_stats - prints a notice when the bonding device enslave a device without get_stats function. Signed-off-by: Laurent Riffard <laurent.riffard@free.fr> Signed-off-by: Jeff Garzik <jeff@garzik.org>