diff options
| author | James Morris <james.l.morris@oracle.com> | 2014-04-13 21:23:14 -0400 |
|---|---|---|
| committer | James Morris <james.l.morris@oracle.com> | 2014-04-13 21:23:14 -0400 |
| commit | ecd740c6f2f092b90b95fa35f757973589eaaca2 (patch) | |
| tree | ce02b1e18c4fc5729699251460cd8be7604d8401 /security/keys | |
| parent | f64410ec665479d7b4b77b7519e814253ed0f686 (diff) | |
| parent | 455c6fdbd219161bd09b1165f11699d6d73de11c (diff) | |
Merge commit 'v3.14' into next
Diffstat (limited to 'security/keys')
| -rw-r--r-- | security/keys/keyring.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/security/keys/keyring.c b/security/keys/keyring.c index d46cbc5e335e..2fb2576dc644 100644 --- a/security/keys/keyring.c +++ b/security/keys/keyring.c | |||
| @@ -1000,7 +1000,11 @@ static int keyring_detect_cycle_iterator(const void *object, | |||
| 1000 | 1000 | ||
| 1001 | kenter("{%d}", key->serial); | 1001 | kenter("{%d}", key->serial); |
| 1002 | 1002 | ||
| 1003 | BUG_ON(key != ctx->match_data); | 1003 | /* We might get a keyring with matching index-key that is nonetheless a |
| 1004 | * different keyring. */ | ||
| 1005 | if (key != ctx->match_data) | ||
| 1006 | return 0; | ||
| 1007 | |||
| 1004 | ctx->result = ERR_PTR(-EDEADLK); | 1008 | ctx->result = ERR_PTR(-EDEADLK); |
| 1005 | return 1; | 1009 | return 1; |
| 1006 | } | 1010 | } |
