[XFRM]: Fix OOPSes in xfrm_audit_log().
David S. Miller authored

Make sure that this function is called correctly, and
add BUG() checking to ensure the arguments are sane.

Based upon a patch by Joy Latten.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
13fcfbb0