jfs: Fix inconsistency between memory allocation and ea_buf->max_size
authorShankara Pailoor <shankarapailoor@gmail.com>
Tue, 5 Jun 2018 13:33:27 +0000 (08:33 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2018 10:16:39 +0000 (12:16 +0200)
commit7d29fb53439c8c91874550cc078eda6db8feafe7
tree56c4364408fc3218c7226832f5e3df54fb487b42
parent59f35b983e8aeb98188c6ef93f8eabc594f8f953
jfs: Fix inconsistency between memory allocation and ea_buf->max_size

commit 92d34134193e5b129dc24f8d79cb9196626e8d7a upstream.

The code is assuming the buffer is max_size length, but we weren't
allocating enough space for it.

Signed-off-by: Shankara Pailoor <shankarapailoor@gmail.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/jfs/xattr.c