Messages in this thread Patch in this message | | | From | Allen Pais <> | Subject | [PATCH 10/10] fs:btrfs: return -ENOMEM on allocation failure. | Date | Wed, 13 Sep 2017 13:02:19 +0530 |
| |
Signed-off-by: Allen Pais <allen.lkml@gmail.com> --- fs/btrfs/check-integrity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/check-integrity.c b/fs/btrfs/check-integrity.c index 7d5a9b5..efa4c23 100644 --- a/fs/btrfs/check-integrity.c +++ b/fs/btrfs/check-integrity.c @@ -2913,7 +2913,7 @@ int btrfsic_mount(struct btrfs_fs_info *fs_info, state = kvzalloc(sizeof(*state), GFP_KERNEL); if (!state) { pr_info("btrfs check-integrity: allocation failed!\n"); - return -1; + return -ENOMEM; } if (!btrfsic_is_initialized) { -- 2.7.4
| |