summaryrefslogtreecommitdiff
path: root/dissector.c
AgeCommit message (Expand)AuthorFilesLines
2014-02-24dissectors: Get rid of unecessary includes of protos.hTobias Klauser1-1/+0
2013-07-10dissector: print hex_ascii combination in unkown linktypesDaniel Borkmann1-5/+4
2013-07-03dissector: do not panic on unknown hatypeDaniel Borkmann1-2/+5
2013-03-15all: import netsniff-ng 0.5.8-rc0 sourceDaniel Borkmann1-0/+115
6fe6a7c3967160de5d6d991dd6e1088953add8 parentf49070957ffed84feb7944550f7edd53672b5201 (diff)
Btrfs: fix eb memory leak due to readpage failure
eb->io_pages is set in read_extent_buffer_pages(). In case of readpage failure, for pages that have been added to bio, it calls bio_endio and later readpage_io_failed_hook() does the work. When this eb's page (couldn't be the 1st page) fails to add itself to bio due to failure in merge_bio(), it cannot decrease eb->io_pages via bio_endio, and ends up with a memory leak eventually. This lets __do_readpage propagate errors to callers and adds the 'atomic_dec(&eb->io_pages)'. Signed-off-by: Liu Bo <bo.li.liu@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat