[PATCH] sanity check audit_buffer

Add sanity checks for NULL audit_buffer consistent with other
audit_log* routines.

Signed-off-by: Amy Griffis <amy.griffis@hp.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

authored by Amy Griffis and committed by Al Viro 8ef2d304 3b33ac31

+6
+6
kernel/audit.c
··· 1028 1028 struct sk_buff *skb; 1029 1029 static const unsigned char *hex = "0123456789ABCDEF"; 1030 1030 1031 + if (!ab) 1032 + return; 1033 + 1031 1034 BUG_ON(!ab->skb); 1032 1035 skb = ab->skb; 1033 1036 avail = skb_tailroom(skb); ··· 1062 1059 int avail, new_len; 1063 1060 unsigned char *ptr; 1064 1061 struct sk_buff *skb; 1062 + 1063 + if (!ab) 1064 + return; 1065 1065 1066 1066 BUG_ON(!ab->skb); 1067 1067 skb = ab->skb;