Skip to content
Commit 621eb19c authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

svcrpc: Revert "sunrpc/cache.h: replace simple_strtoul"



Commit bbf43dc8 "sunrpc/cache.h: replace
simple_strtoul" introduced new range-checking which could cause get_int
to fail on unsigned integers too large to be represented as an int.

We could parse them as unsigned instead--but it turns out svcgssd is
actually passing down "-1" in some cases.  Which is perhaps stupid, but
there's nothing we can do about it now.

So just revert back to the previous "sloppy" behavior that accepts
either representation.

Cc: stable@vger.kernel.org
Reported-by: default avatarSven Geggus <lists@fuchsschwanzdomain.de>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 2b4cf668
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment