Re:“People who implement new and improved interfaces always ...
by metric10 on Friday September 11, 2015 @04:06PM
(#10205872)
I don't know about Linux's simple_strtoul(), but the C library's strtoul(3) will return ULONG_MAX and set the string pointer to a valid location. So the old code COULD cause an issue if "io_tlb_nslabs" being equal to ULONG_MAX isn't accounted for later on, but adding -1 (0xffffffffffffffff) to a pointer (as the new code does) is far worse.
[ Parent
| on HN ]
There are no comments on this comment yet.