[NET]: Fix comparisons of unsigned < 0.
Recent gcc versions emit warnings when unsigned variables are compared < 0 or >= 0. Signed-off-by: Bill Nottingham <notting@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
60468d5b5b
commit
75202e7689
@@ -454,7 +454,7 @@ static int wanrouter_device_setup(struct wan_device *wandev,
|
||||
}
|
||||
|
||||
if (conf->data_size && conf->data) {
|
||||
if (conf->data_size > 128000 || conf->data_size < 0) {
|
||||
if (conf->data_size > 128000) {
|
||||
printk(KERN_INFO
|
||||
"%s: ERROR, Invalid firmware data size %i !\n",
|
||||
wandev->name, conf->data_size);
|
||||
|
Reference in New Issue
Block a user