ceph: fix potential double free
authorAlan Cox <alan@linux.intel.com>
Fri, 20 Jul 2012 13:18:36 +0000 (08:18 -0500)
committerSage Weil <sage@inktank.com>
Tue, 31 Jul 2012 01:15:35 +0000 (18:15 -0700)
commit21ec6ffa46719a4ed45531b5b01014c26f0416c4
treecbdfa66b0b8c6dbe7911eab10e94ba0c21a50abd
parent85effe183dd45854d1ad1a370b88cddb403c4c91
ceph: fix potential double free

We re-run the loop but we don't re-set the attrs pointer back to NULL.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Reviewed-by: Alex Elder <elder@inktank.com>
fs/ceph/xattr.c