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)
commitec02d79766ddcc55657adf5eb20e97348ecd4d5e
tree3b799bbecf6e8d28f23e44357c0d9be099b18a48
parent62f5437361794947288be41699510ed2ab2f1fc5
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