summarylogtreecommitdiffstats
path: root/0002-fix-uninitialized-condition.patch
blob: 38b052553570ab472bb4942ed4654fc1f316aa97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 6ca92c9dddf7ddbda0facd171f600cc1fcba0518 Mon Sep 17 00:00:00 2001
From: wangyifan <wangyifan@acoinfo.com>
Date: Mon, 9 Jun 2025 20:32:20 +0800
Subject: [PATCH 2/2] fix uninitialized condition

---
 driver/ch9344.c | 2 ++--
 1 file changed, 1 insertions(+), 1 deletions(-)

diff --git a/driver/ch9344.c b/driver/ch9344.c
index 125dd72..17b027a 100644
--- a/driver/ch9344.c
+++ b/driver/ch9344.c
@@ -2885,7 +2885,7 @@ static int ch9344_probe(struct usb_interface *intf,
 	int portnum = 0;
 	int cmdsize, readsize;
 	u8 *buf;
-	bool bpackload;
+	bool bpackload = 0;
 	char *buffer;
 	unsigned long quirks;
 	int num_rx_buf = CH9344_NR;
-- 
2.49.0