summaryrefslogtreecommitdiffstats
path: root/drivers/char/ipmi
diff options
context:
space:
mode:
authorCorey Minyard <minyard@acm.org>2023-04-04 14:09:14 +0200
committerCorey Minyard <minyard@acm.org>2023-04-04 14:23:25 +0200
commit6ce7995a43febe693d4894033c6e29314970646a (patch)
treeebed4a50c6549fa6566fd2f1a40202f0a67d8c9c /drivers/char/ipmi
parentchar:ipmi:Fix spelling mistake "asychronously" -> "asynchronously" (diff)
downloadlinux-6ce7995a43febe693d4894033c6e29314970646a.tar.xz
linux-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/ipmi')
-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)