Staging: batman-adv: Dont deactivate aggregation on wrong input
authorLinus Lüssing <linus.luessing@web.de>
Sat, 2 Jan 2010 10:30:52 +0000 (11:30 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:36 +0000 (16:42 -0800)
commit4230020c42457e51c98636a328c60e9f3744152c
tree7937cc25d83ffba16663d7583061e8528ff73734
parentabad5446585b0b9519fad00c05156f373ea114ad
Staging: batman-adv: Dont deactivate aggregation on wrong input

A non-integer changes the aggregation mode. Therefore this patch changes
the behaviour to explicitly check strict_strtoul()'s return code.

Signed-off-by: Linus Lüssing <linus.luessing@web.de>
Acked-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/proc.c