commit | 724dfc25f596668ad361ecd562f1a741114500aa | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Mon Feb 22 22:31:31 2016 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Mar 05 14:48:04 2016 -0800 |
tree | e7563058a6d274b01a95df66510cc0aac478b98f | |
parent | c688671d89785238d0da56ee7b0ba00adaa5e260 [diff] |
Staging: gdm72xx: silence underflow warning in netlink_send() The value of "group" comes from "idx" in __gdm_wimax_event_send(): if (sscanf(e->dev->name, "wm%d", &idx) == 1) Smatch marks sscanf values as user controlled. It's supposed to be a number in 0-30 range. We cap the upper bound but allow negatives. Fix this by making it type u16 instead. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>