Apply a283c03a3a
This commit is contained in:
parent
f00b4d432e
commit
b167d4f9df
@ -288,6 +288,7 @@
|
|||||||
|
|
||||||
#include <linux/usb/ch9.h>
|
#include <linux/usb/ch9.h>
|
||||||
#include <linux/usb/gadget.h>
|
#include <linux/usb/gadget.h>
|
||||||
|
#include <linux/usb/composite.h>
|
||||||
|
|
||||||
#include "gadget_chips.h"
|
#include "gadget_chips.h"
|
||||||
|
|
||||||
@ -2669,7 +2670,7 @@ static struct fsg_common *fsg_common_init(struct fsg_common *common,
|
|||||||
return ERR_PTR(-ENOMEM);
|
return ERR_PTR(-ENOMEM);
|
||||||
common->free_storage_on_release = 1;
|
common->free_storage_on_release = 1;
|
||||||
} else {
|
} else {
|
||||||
memset(common, 0, sizeof common);
|
memset(common, 0, sizeof *common);
|
||||||
common->free_storage_on_release = 0;
|
common->free_storage_on_release = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user