diff options
| author | Linus Lüssing <linus.luessing@web.de> | 2010-05-07 23:47:06 +0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-12 00:42:37 +0400 |
| commit | adaaa0c6ab89e82684389b80002bce893179cf2c (patch) | |
| tree | 02cca4e453bab75aeb09126c67cd733e182cf642 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | de37cd49b5a54facef174cf34496919857436e8f (diff) | |
| download | linux-adaaa0c6ab89e82684389b80002bce893179cf2c.tar.xz | |
Staging: batman-adv: only modify hna-table on active module
If we haven't set the module to MODULE_ACTIVE state before (in general,
no interface has yet been added to batman-adv) then the hna table is not
initialised yet. If the kernel changes the mac address of the bat0
interface at this moment then an hna_local_add() called by interface_set_mac_addr()
then resulted in a null pointer derefernce. With this patch we are now
explicitly checking before if the state is MODULE_ACTIVE right now so
that we can assume having an initialised hna table.
Signed-off-by: Linus Lüssing <linus.luessing@web.de>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions
