commit | 35ea790d7883dd660208f78eae50ebfd6b8bd14a | [log] [tgz] |
---|---|---|
author | Steffen Klassert <steffen.klassert@secunet.com> | Wed Feb 19 13:33:23 2014 +0100 |
committer | Steffen Klassert <steffen.klassert@secunet.com> | Thu Feb 20 14:29:58 2014 +0100 |
tree | 29fd34fd5df068375acbd51de352e0955de633b6 | |
parent | 876fc03aaa4d8cc81331119d80d3e9bfbf1164e8 [diff] |
xfrm: Fix NULL pointer dereference on sub policy usage xfrm_state_sort() takes the unsorted states from the src array and stores them into the dst array. We try to get the namespace from the dst array which is empty at this time, so take the namespace from the src array instead. Fixes: 283bc9f35bbbc ("xfrm: Namespacify xfrm state/policy locks") Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>