diff options
author | snchen <snchen@nvidia.com> | 2021-08-06 04:43:15 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2021-10-29 08:40:00 -0400 |
commit | fbce379d66157b2cdd5deb231e130b1c5207fcf7 (patch) | |
tree | a674b5dd9cf69fa34019707f5d5b820bdfab8493 | |
parent | 0899e4aa2a41b66c2ff465c8fdfb86f2f2954d71 (diff) |
camera: modify debugfs_name size avoid boot failed
fixed when the size of debugfs_name in sensor driver
more than 9 cause system can't boot.
bug 200759786
Change-Id: Ic34c7a2118095c82c58a1ef01561cedbacd27b2f
Signed-off-by: Shan Neng Chen <snchen@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2571796
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Anubhav Rai <arai@nvidia.com>
Reviewed-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
-rw-r--r-- | drivers/media/platform/tegra/camera/camera_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/tegra/camera/camera_common.c b/drivers/media/platform/tegra/camera/camera_common.c index 4ce94ea3b..ce1f254dd 100644 --- a/drivers/media/platform/tegra/camera/camera_common.c +++ b/drivers/media/platform/tegra/camera/camera_common.c | |||
@@ -991,7 +991,7 @@ int camera_common_initialize(struct camera_common_data *s_data, | |||
991 | const char *dev_name) | 991 | const char *dev_name) |
992 | { | 992 | { |
993 | int err = 0; | 993 | int err = 0; |
994 | char debugfs_name[10]; | 994 | char debugfs_name[35]; |
995 | 995 | ||
996 | if (s_data->dev == NULL) | 996 | if (s_data->dev == NULL) |
997 | return -EINVAL; | 997 | return -EINVAL; |