diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-07-16 18:47:00 +0300 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-07-16 18:59:35 +0300 |
commit | bdc54d8e3cb4a41dddcabfd86d9eb3aa5f622b75 (patch) | |
tree | 7bfca83d058439ba9b7f35da06801d0143832b5a /net/sunrpc/auth_gss | |
parent | 9ffadfbc092fc25d9639a019fb3079cf352ef978 (diff) | |
download | linux-bdc54d8e3cb4a41dddcabfd86d9eb3aa5f622b75.tar.xz |
SUNRPC: Fix infinite looping in rpc_clnt_iterate_for_each_xprt
If there were less than 2 entries in the multipath list, then
xprt_iter_next_entry_multiple() would never advance beyond the
first entry, which is correct for round robin behaviour, but not
for the list iteration.
The end result would be infinite looping in rpc_clnt_iterate_for_each_xprt()
as we would never see the xprt == NULL condition fulfilled.
Reported-by: Oleg Drokin <green@linuxhacker.ru>
Fixes: 80b14d5e61ca ("SUNRPC: Add a structure to track multiple transports")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'net/sunrpc/auth_gss')
0 files changed, 0 insertions, 0 deletions