Message ID | 20210420044452.88267-3-colyli@suse.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | bcache patches for Linux v5.13 - 3rd wave | expand |
diff --git a/drivers/md/bcache/nvm-pages.c b/drivers/md/bcache/nvm-pages.c index 08cd45e90481..2e124d546099 100644 --- a/drivers/md/bcache/nvm-pages.c +++ b/drivers/md/bcache/nvm-pages.c @@ -584,6 +584,7 @@ struct bch_nvm_namespace *bch_register_namespace(const char *dev_path) return ERR_PTR(PTR_ERR(bdev)); } + err = -ENOMEM; ns = kzalloc(sizeof(struct bch_nvm_namespace), GFP_KERNEL); if (!ns) goto bdput;