summaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorCorey Minyard <minyard@acm.org>2023-04-04 12:09:14 +0000
committerCorey Minyard <minyard@acm.org>2023-04-04 12:23:25 +0000
commit6ce7995a43febe693d4894033c6e29314970646a (patch)
treeebed4a50c6549fa6566fd2f1a40202f0a67d8c9c /drivers/char
parent957c822a9c708b78390b7f24695943a5bde81434 (diff)
downloadlinux-stable-6ce7995a43febe693d4894033c6e29314970646a.tar.gz
linux-stable-6ce7995a43febe693d4894033c6e29314970646a.tar.bz2
linux-stable-6ce7995a43febe693d4894033c6e29314970646a.zip
ipmi:ssif: Add send_retries increment
A recent change removed an increment of send_retries, re-add it. Fixes: 95767ed78a18 ipmi:ssif: resend_msg() cannot fail Reported-by: Pavel Machek <pavel@denx.de> Cc: stable@vger.kernel.org Signed-off-by: Corey Minyard <minyard@acm.org>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/ipmi/ipmi_ssif.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/char/ipmi/ipmi_ssif.c b/drivers/char/ipmi/ipmi_ssif.c
index 1a85b400e929..e4f6ecc12ed7 100644
--- a/drivers/char/ipmi/ipmi_ssif.c
+++ b/drivers/char/ipmi/ipmi_ssif.c
@@ -557,8 +557,10 @@ static void retry_timeout(struct timer_list *t)
if (waiting)
start_get(ssif_info);
- if (resend)
+ if (resend) {
start_resend(ssif_info);
+ ssif_inc_stat(ssif_info, send_retries);
+ }
}
static void watch_timeout(struct timer_list *t)