ledtrig-netdev: use dev_get_stats to get statistics on kernels >=2.6.30
authorGabor Juhos <juhosg@openwrt.org>
Fri, 25 Dec 2009 10:06:22 +0000 (10:06 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 25 Dec 2009 10:06:22 +0000 (10:06 +0000)
commitcd2416e6ea0660bd93b051fa14aadfb3ad5f5f64
treef0380fa367598823e2b0a693bd49d15484094301
parent0a24ec2e4aa4601e4ce29071ccce2d1f0cb39012
ledtrig-netdev: use dev_get_stats to get statistics on kernels >=2.6.30

Fixes a possible NULL pointer dereference.

SVN-Revision: 18925
target/linux/generic-2.6/files-2.6.30/drivers/leds/ledtrig-netdev.c
target/linux/generic-2.6/files-2.6.31/drivers/leds/ledtrig-netdev.c
target/linux/generic-2.6/files-2.6.32/drivers/leds/ledtrig-netdev.c