commit | afd2e186bd7e58dc9d298ff5fb5a2fc30578867e | [log] [tgz] |
---|---|---|
author | Michal Nazarewicz <mina86@mina86.com> | Wed Jan 09 10:17:47 2013 +0100 |
committer | Felipe Balbi <balbi@ti.com> | Thu Jan 10 12:42:14 2013 +0200 |
tree | 1218ca710f61fb570b110279211739e406fc67c0 | |
parent | cd76213eb57c505d3df6fa3134a6b3bb5394a90c [diff] |
usb: gadget: FunctionFS: Use kstrtoul() kstrtoul() checks for overflow which simple_strtoul() does not pluss it has “*end == 0” check in it as well. As a side effect, a new line character is now accepted, but this should not be an issue. Signed-off-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Felipe Balbi <balbi@ti.com>