mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
nfs: fix unchecked value
Return value of "decode_attr_bitmap()" was not checked; Signed-off-by: Roman Borisov <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
This commit is contained in:
parent
55b6e7742d
commit
3388bff5cf
1 changed files with 4 additions and 1 deletions
|
|
@ -2687,7 +2687,10 @@ out_overflow:
|
|||
static int decode_attr_supported(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *bitmask)
|
||||
{
|
||||
if (likely(bitmap[0] & FATTR4_WORD0_SUPPORTED_ATTRS)) {
|
||||
decode_attr_bitmap(xdr, bitmask);
|
||||
int ret;
|
||||
ret = decode_attr_bitmap(xdr, bitmask);
|
||||
if (unlikely(ret < 0))
|
||||
return ret;
|
||||
bitmap[0] &= ~FATTR4_WORD0_SUPPORTED_ATTRS;
|
||||
} else
|
||||
bitmask[0] = bitmask[1] = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue