diff options
author | Hsiu-Chang Chen <hsiuchangchen@google.com> | 2022-04-11 17:56:32 +0800 |
---|---|---|
committer | Hsiu-Chang Chen <hsiuchangchen@google.com> | 2022-04-11 17:56:32 +0800 |
commit | a669d625291d0f932429991e9855e2fc1f93f4f0 (patch) | |
tree | 9c23e05dd0f9e73ddb3b51cc9808da0444119e19 /qmi | |
parent | 88f2e5ee91325812e4afed47005830105531d47b (diff) | |
download | cnss2-a669d625291d0f932429991e9855e2fc1f93f4f0.tar.gz |
wcn6740: Update cnss/mhi/qmi/qrtr drivers
Migrate wlan codes to Rel4(ES1.1)
Bug: 228562103
Test: Basic functions
Change-Id: I48ab3c27af57d199363e47207153ad856f38b926
Diffstat (limited to 'qmi')
-rw-r--r-- | qmi/qmi_interface.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qmi/qmi_interface.c b/qmi/qmi_interface.c index 2bebc90..4ceb572 100644 --- a/qmi/qmi_interface.c +++ b/qmi/qmi_interface.c @@ -1,7 +1,9 @@ // SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2017 Linaro Ltd. + * Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved. */ + #include <linux/kernel.h> #include <linux/module.h> #include <linux/device.h> @@ -411,7 +413,7 @@ static void qmi_invoke_handler(struct qmi_handle *qmi, struct sockaddr_qrtr *sq, break; } - if (!handler->fn) + if (!handler->fn || !handler->decoded_size) return; dest = kzalloc(handler->decoded_size, GFP_KERNEL); |