Re: [PATCH ipsec-next] xfrm: policy: fix policy hash rebuild

2018-11-30 Thread Steffen Klassert
On Tue, Nov 27, 2018 at 01:28:54PM +0100, Florian Westphal wrote: > Dan Carpenter reports following static checker warning: > net/xfrm/xfrm_policy.c:1316 xfrm_hash_rebuild() > warn: 'dir' is out of bounds '3' vs '2' > > | 1280 /* reset the bydst and inexact table in all directions */

[PATCH ipsec-next] xfrm: policy: fix policy hash rebuild

2018-11-27 Thread Florian Westphal
Dan Carpenter reports following static checker warning: net/xfrm/xfrm_policy.c:1316 xfrm_hash_rebuild() warn: 'dir' is out of bounds '3' vs '2' | 1280 /* reset the bydst and inexact table in all directions */ | 1281 xfrm_hash_reset_inexact_table(net); | 1282 | 1283