ath10k: Change the warning message string [Linux 4.14.136]

This Linux kernel change "ath10k: Change the warning message string" is included in the Linux 4.14.136 release. This change is authored by Fabio Estevam <festevam [at] gmail.com> on Thu May 9 09:15:00 2019 -0300. The commit for this change in Linux stable tree is 3abe163 (patch) which is from upstream commit 265df32. The same Linux upstream change may have been applied to various maintained Linux releases and you can find all Linux releases containing changes from upstream 265df32.

ath10k: Change the warning message string

commit 265df32eae5845212ad9f55f5ae6b6dcb68b187b upstream.

The "WARNING" string confuses syzbot, which thinks it found
a crash [1].

Change the string to avoid such problem.

[1] https://lkml.org/lkml/2019/5/9/243

Reported-by: [email protected]
Suggested-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Fabio Estevam <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/net/wireless/ath/ath10k/usb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath10k/usb.c b/drivers/net/wireless/ath/ath10k/usb.c
index d4803ff..f09a4ad 100644
--- a/drivers/net/wireless/ath/ath10k/usb.c
+++ b/drivers/net/wireless/ath/ath10k/usb.c
@@ -1025,7 +1025,7 @@ static int ath10k_usb_probe(struct usb_interface *interface,
    }

    /* TODO: remove this once USB support is fully implemented */
-   ath10k_warn(ar, "WARNING: ath10k USB support is incomplete, don't expect anything to work!\n");
+   ath10k_warn(ar, "Warning: ath10k USB support is incomplete, don't expect anything to work!\n");

    return 0;

Leave a Reply

Your email address will not be published. Required fields are marked *