public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: syzbot <syzbot+c99d17aa44dbdba16ad2@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org
Subject: Forwarded: [PATCH 1/1] move callback
Date: Fri, 10 Apr 2026 08:38:41 -0700	[thread overview]
Message-ID: <69d91981.050a0220.3030df.002c.GAE@google.com> (raw)
In-Reply-To: <689daf88.050a0220.2d37a5.0001.GAE@google.com>

For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.

***

Subject: [PATCH 1/1] move callback
Author: jakovnovak30@gmail.com

#syz test

---
 drivers/net/wireless/marvell/libertas/firmware.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/marvell/libertas/firmware.c b/drivers/net/wireless/marvell/libertas/firmware.c
index f124110944b7..129aed503ff0 100644
--- a/drivers/net/wireless/marvell/libertas/firmware.c
+++ b/drivers/net/wireless/marvell/libertas/firmware.c
@@ -19,13 +19,17 @@ static void lbs_fw_loaded(struct lbs_private *priv, int ret,
 
 	lbs_deb_fw("firmware load complete, code %d\n", ret);
 
-	/* User must free helper/mainfw */
-	priv->fw_callback(priv, ret, helper, mainfw);
+	/* save cb for later because it can be interrupted */
+	lbs_fw_cb cb = priv->fw_callback;
 
 	spin_lock_irqsave(&priv->driver_lock, flags);
 	priv->fw_callback = NULL;
 	wake_up(&priv->fw_waitq);
 	spin_unlock_irqrestore(&priv->driver_lock, flags);
+
+	/* User must free helper/mainfw */
+	cb(priv, ret, helper, mainfw);
+
 }
 
 static void do_load_firmware(struct lbs_private *priv, const char *name,
-- 
2.53.0


  parent reply	other threads:[~2026-04-10 15:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-14  9:42 [syzbot] [libertas?] INFO: task hung in lbs_remove_card syzbot
2026-02-27 11:22 ` syzbot
2026-02-28  3:35   ` Hillf Danton
2026-02-28  5:14     ` syzbot
2026-04-08 11:46 ` Forwarded: [PATCH 1/1] assert that the firmware has not been loaded before waiting for load completion syzbot
2026-04-08 12:11 ` Forwarded: [PATCH 1/1] add lock to wait queue syzbot
2026-04-08 12:20 ` syzbot
2026-04-08 13:10 ` syzbot
2026-04-10 15:38 ` syzbot [this message]
2026-04-10 20:56 ` Forwarded: [PATCH 1/1] add wake_up call inside if_usb_disconnect syzbot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=69d91981.050a0220.3030df.002c.GAE@google.com \
    --to=syzbot+c99d17aa44dbdba16ad2@syzkaller.appspotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox