From b167d4f9df89f5f7a033fc35a13356b8f9fcc1c2 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Wed, 26 Jul 2017 11:36:52 +0100 Subject: [PATCH] Apply https://github.com/torvalds/linux/commit/a283c03a3a7a8cd3f8836ffd1b1d6cc8f778492c --- brick/kernel/f_mass_storage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/brick/kernel/f_mass_storage.c b/brick/kernel/f_mass_storage.c index f3ab9635..86503405 100644 --- a/brick/kernel/f_mass_storage.c +++ b/brick/kernel/f_mass_storage.c @@ -288,6 +288,7 @@ #include #include +#include #include "gadget_chips.h" @@ -2669,7 +2670,7 @@ static struct fsg_common *fsg_common_init(struct fsg_common *common, return ERR_PTR(-ENOMEM); common->free_storage_on_release = 1; } else { - memset(common, 0, sizeof common); + memset(common, 0, sizeof *common); common->free_storage_on_release = 0; }