lkml.org 
[lkml]   [2017]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 10/10] fs:btrfs: return -ENOMEM on allocation failure.
    Date
    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
    \
     
     \ /
      Last update: 2017-09-13 09:34    [W:3.236 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site