]> git.baikalelectronics.ru Git - kernel.git/commit
[XFRM]: Compilation warnings in xfrm_user.c.
authorDenis V. Lunev <den@openvz.org>
Mon, 14 Apr 2008 21:47:48 +0000 (14:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Apr 2008 21:47:48 +0000 (14:47 -0700)
commit4c460fa6ab8f3d78d76d386d9b85db5f01936c24
treead264804033c49c507865ecff7f9c61f506debce
parent9f96b1f87b2b3dfd0eb20b596bed5e715c397c70
[XFRM]: Compilation warnings in xfrm_user.c.

When CONFIG_SECURITY_NETWORK_XFRM is undefined the following warnings appears:
net/xfrm/xfrm_user.c: In function 'xfrm_add_pol_expire':
net/xfrm/xfrm_user.c:1576: warning: 'ctx' may be used uninitialized in this function
net/xfrm/xfrm_user.c: In function 'xfrm_get_policy':
net/xfrm/xfrm_user.c:1340: warning: 'ctx' may be used uninitialized in this function
(security_xfrm_policy_alloc is noop for the case).

It seems that they are result of the commit
530e1a4a96d0856239a0c5326fa5a97c574ba4ca ("LSM: Make the Labeled IPsec
hooks more stack friendly")

Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_user.c