Failing to drop the buffer when the header is bad results in a
deadlock in a later phase when we try to read the remote symlink
again.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
do_warn(
_("bad symlink header ino %" PRIu64 ", file block %d, disk block %" PRIu64 "\n"),
lino, i, fsbno);
+ libxfs_putbuf(bp);
return(1);
}
buf_data += sizeof(struct xfs_dsymlink_hdr);