From: Laurent Riffard Date: Sat, 18 Nov 2006 11:03:04 +0000 (+0100) Subject: [PATCH] bonding: fix an oops when slave device does not provide get_stats X-Git-Tag: v2.6.20-rc2~6^2~13^2~471^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=418e8f3d7ef4a30d4b5c84440641c9792a7f83f1;p=pandora-kernel.git [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 Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed