diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2011-01-21 03:05:38 +0000 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-01-25 15:24:47 -0500 |
commit | f61f6da0d53842e849bab7f69e1431bd3de1136d (patch) | |
tree | 8433904f645695338b98d3dc831631ffd6f129e5 /sound | |
parent | 731f3f482ad3b2c58a1af2d0a9a634a82803706a (diff) | |
download | op-kernel-dev-f61f6da0d53842e849bab7f69e1431bd3de1136d.zip op-kernel-dev-f61f6da0d53842e849bab7f69e1431bd3de1136d.tar.gz |
NFS: Prevent memory allocation failure in nfsacl_encode()
nfsacl_encode() allocates memory in certain cases. This of course
is not guaranteed to work.
Since commit 9f06c719 "SUNRPC: New xdr_streams XDR encoder API", the
kernel's XDR encoders can't return a result indicating possibly a
failure, so a memory allocation failure in nfsacl_encode() has become
fatal (ie, the XDR code Oopses) in some cases.
However, the allocated memory is a tiny fixed amount, on the order
of 40-50 bytes. We can easily use a stack-allocated buffer for
this, with only a wee bit of nose-holding.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions