allocation is successful and return -ENOMEM on failure.
Signed-off-by: Rohith Seelaboyina rseelaboy...@nvidia.com
---
Changes in v2:
- Use kcalloc to allocate memory instead of using
kmalloc and memset.
drivers/usb/gadget/function/f_fs.c | 13 +
1 file changed, 9 insertions
allocation is successful and return -ENOMEM on failure.
Signed-off-by: Rohith Seelaboyina rseelaboy...@nvidia.com
---
Changes in v3:
- Follow kernel coding style to seperate variable
declaration and assignment.
Changes in v2:
- Use kcalloc to allocate memory instead of using
kmalloc
allocation is successful and return -ENOMEM on failure.
Signed-off-by: Rohith Seelaboyina rseelaboy...@nvidia.com
---
drivers/usb/gadget/function/f_fs.c | 15 +++
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/drivers/usb/gadget/function/f_fs.c
b/drivers/usb/gadget