Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23516
b: refs/heads/master
c: 3dccff8
h: refs/heads/master
v: v3
  • Loading branch information
David Howells authored and Linus Torvalds committed Mar 25, 2006
1 parent 8ed639c commit 2c8eb39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: a7d06ca7b626c9257bee4439d9d80a7e44ae237e
refs/heads/master: 3dccff8dc00994428777f483922058c554db85bd
4 changes: 2 additions & 2 deletions trunk/security/keys/key.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* key.c: basic authentication token and access key management
*
* Copyright (C) 2004 Red Hat, Inc. All Rights Reserved.
* Copyright (C) 2004-6 Red Hat, Inc. All Rights Reserved.
* Written by David Howells (dhowells@redhat.com)
*
* This program is free software; you can redistribute it and/or
Expand Down Expand Up @@ -271,7 +271,7 @@ struct key *key_alloc(struct key_type *type, const char *desc,
* its description */
if (!not_in_quota) {
spin_lock(&user->lock);
if (user->qnkeys + 1 >= KEYQUOTA_MAX_KEYS &&
if (user->qnkeys + 1 >= KEYQUOTA_MAX_KEYS ||
user->qnbytes + quotalen >= KEYQUOTA_MAX_BYTES
)
goto no_quota;
Expand Down

0 comments on commit 2c8eb39

Please sign in to comment.