Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294556
b: refs/heads/master
c: 0097143
h: refs/heads/master
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Mar 12, 2012
1 parent aca7418 commit a417b07
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 11588f493a2441f09ceb2088d07cc012b53cbf75
refs/heads/master: 0097143c12e279f5d454e0f636a02afff102cc6a
7 changes: 5 additions & 2 deletions trunk/net/sunrpc/auth_gss/gss_krb5_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,11 +600,14 @@ gss_krb5_cts_crypt(struct crypto_blkcipher *cipher, struct xdr_buf *buf,
u32 ret;
struct scatterlist sg[1];
struct blkcipher_desc desc = { .tfm = cipher, .info = iv };
u8 data[crypto_blkcipher_blocksize(cipher) * 2];
u8 data[GSS_KRB5_MAX_BLOCKSIZE * 2];
struct page **save_pages;
u32 len = buf->len - offset;

BUG_ON(len > crypto_blkcipher_blocksize(cipher) * 2);
if (len > ARRAY_SIZE(data)) {
WARN_ON(0);
return -ENOMEM;
}

/*
* For encryption, we want to read from the cleartext
Expand Down

0 comments on commit a417b07

Please sign in to comment.