]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: fix uncheck memory allocation in btrfs_submit_compressed_read
authorliubo <liubo2009@cn.fujitsu.com>
Wed, 26 Jan 2011 06:21:39 +0000 (06:21 +0000)
committerChris Mason <chris.mason@oracle.com>
Fri, 28 Jan 2011 21:40:36 +0000 (16:40 -0500)
commit8759862addd0f43a8a219792bd275459434fda36
tree756e869f3fc9a7baa320ca671d0174c5430c091a
parent7f7c97eac8982cdf427781a1b5c7730c693fc4b6
btrfs: fix uncheck memory allocation in btrfs_submit_compressed_read

btrfs_submit_compressed_read() is lack of memory allocation checks and
corresponding error route.

After this fix, if it comes to "no memory" case, errno will be returned
to userland step by step, and tell users this operation cannot go on.

Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/compression.c
fs/btrfs/extent_io.c