[KEY]: Fix conversion between IPSEC_MODE_xxx and XFRM_MODE_xxx.
authorKazunori MIYAZAWA <miyazawa@linux-ipv6.org>
Tue, 17 Apr 2007 19:32:20 +0000 (12:32 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 17 Apr 2007 20:13:21 +0000 (13:13 -0700)
commit55569ce256ce29f4624f0007213432c1ed646584
treee8c29263844ed733d6d40bbeb871588eaa1a9bd1
parentb4dfa0b1fb39c7ffe74741d60668825de6a47b69
[KEY]: Fix conversion between IPSEC_MODE_xxx and XFRM_MODE_xxx.

We should not blindly convert between IPSEC_MODE_xxx and XFRM_MODE_xxx just
by incrementing / decrementing because the assumption is not true any longer.

Signed-off-by: Kazunori MIYAZAWA <miyazawa@linux-ipv6.org>
Singed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
net/key/af_key.c