Loading drivers/usb/gadget/function/f_fs.c +7 −2 Original line number Diff line number Diff line Loading @@ -1760,8 +1760,13 @@ static int ffs_fs_get_tree(struct fs_context *fc) return invalf(fc, "No source specified"); ffs = ffs_data_new(fc->source); if (unlikely(!ffs)) if (IS_ERR_OR_NULL(ffs)) { if (!ffs) return -ENOMEM; else return PTR_ERR(ffs); } ffs->file_perms = ctx->perms; ffs->no_disconnect = ctx->no_disconnect; Loading Loading
drivers/usb/gadget/function/f_fs.c +7 −2 Original line number Diff line number Diff line Loading @@ -1760,8 +1760,13 @@ static int ffs_fs_get_tree(struct fs_context *fc) return invalf(fc, "No source specified"); ffs = ffs_data_new(fc->source); if (unlikely(!ffs)) if (IS_ERR_OR_NULL(ffs)) { if (!ffs) return -ENOMEM; else return PTR_ERR(ffs); } ffs->file_perms = ctx->perms; ffs->no_disconnect = ctx->no_disconnect; Loading