Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2190
b: refs/heads/master
c: e3b926b
h: refs/heads/master
v: v3
  • Loading branch information
David Woodhouse committed May 10, 2005
1 parent b5f2ee1 commit 6f4e05b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8c5aa40c94ef8bb7f7da95ecd5942e2d20fc3c9d
refs/heads/master: e3b926b4c1499ba7b1b9513aa6113944d572aba5
8 changes: 4 additions & 4 deletions trunk/kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,10 +687,10 @@ struct audit_buffer *audit_log_start(struct audit_context *ctx)
* Returns 0 (no space) on failed expansion, or available space if
* successful.
*/
static inline int audit_expand(struct audit_buffer *ab)
static inline int audit_expand(struct audit_buffer *ab, int extra)
{
struct sk_buff *skb = ab->skb;
int ret = pskb_expand_head(skb, skb_headroom(skb), AUDIT_BUFSIZ,
int ret = pskb_expand_head(skb, skb_headroom(skb), extra,
GFP_ATOMIC);
if (ret < 0) {
audit_log_lost("out of memory in audit_expand");
Expand All @@ -716,7 +716,7 @@ static void audit_log_vformat(struct audit_buffer *ab, const char *fmt,
skb = ab->skb;
avail = skb_tailroom(skb);
if (avail == 0) {
avail = audit_expand(ab);
avail = audit_expand(ab, AUDIT_BUFSIZ);
if (!avail)
goto out;
}
Expand All @@ -725,7 +725,7 @@ static void audit_log_vformat(struct audit_buffer *ab, const char *fmt,
/* The printk buffer is 1024 bytes long, so if we get
* here and AUDIT_BUFSIZ is at least 1024, then we can
* log everything that printk could have logged. */
avail = audit_expand(ab);
avail = audit_expand(ab, 1+len-avail);
if (!avail)
goto out;
len = vsnprintf(skb->tail, avail, fmt, args);
Expand Down

0 comments on commit 6f4e05b

Please sign in to comment.