diff options
author | David Chiang <davidchiang@google.com> | 2023-04-11 04:26:22 +0000 |
---|---|---|
committer | Daniel Mentz <danielmentz@google.com> | 2023-04-11 12:50:51 -0700 |
commit | 6bac35c4ca96b3ac798d00ac3c0c154e80752981 (patch) | |
tree | 00979eb98a05e2aadab585503022a40503c366f7 | |
parent | 0f9718887f9f52c056812dc6e21a6451cc8f4b12 (diff) | |
download | zuma-6bac35c4ca96b3ac798d00ac3c0c154e80752981.tar.gz |
gxp: add format string for commit hash
Add format string for printing the commit hash, otherwise there might be
kernel panic when THIS_MODULE->scmversion is NULL.
Bug: 270589821
Bug: 277787303
Change-Id: Ifaf411401a1b8fce75180e94f3addc95919cbbf4
Signed-off-by: David Chiang <davidchiang@google.com>
-rw-r--r-- | gxp-common-platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gxp-common-platform.c b/gxp-common-platform.c index 7116553..205e7f0 100644 --- a/gxp-common-platform.c +++ b/gxp-common-platform.c @@ -1441,7 +1441,7 @@ gxp_get_interface_version(struct gxp_client *client, ibuf.version_minor = GXP_INTERFACE_VERSION_MINOR; memset(ibuf.version_build, 0, GXP_INTERFACE_VERSION_BUILD_BUFFER_SIZE); ret = snprintf(ibuf.version_build, - GXP_INTERFACE_VERSION_BUILD_BUFFER_SIZE - 1, + GXP_INTERFACE_VERSION_BUILD_BUFFER_SIZE - 1, "%s", get_driver_commit()); if (ret < 0 || ret >= GXP_INTERFACE_VERSION_BUILD_BUFFER_SIZE) { |