From: Mihai Carabas <mihai.carabas@oracle.com>
To: arnd@arndb.de, gregkh@linuxfoundation.org,
andriy.shevchenko@linux.intel.com, christophe.jaillet@wanadoo.fr,
mihai.carabas@oracle.com, linux-kernel@vger.kernel.org
Subject: [PATCH v3] misc/pvpanic: fix set driver data
Date: Thu, 19 Aug 2021 18:12:25 +0300 [thread overview]
Message-ID: <1629385946-4584-1-git-send-email-mihai.carabas@oracle.com> (raw)
Commit 394febc9d0a6 ("misc/pvpanic: Make 'pvpanic_probe()' resource managed")
removed dev_set_drvdata() from the probe function and accessing sysfs entries
from userspace is causing a panic in the kernel (pi = dev_get_drvdata(dev) ->
pi is NULL).
v2:
- fixes a compile issue with CONFIG_PVPANIC_PCI
- move dev_set_drvdata() to devm_pvpanic_probe()
v3:
- move dev_set_drvdata() at the end of devm_pvpanic_probe()
Mihai Carabas (1):
misc/pvpanic: fix set driver data
drivers/misc/pvpanic/pvpanic.c | 2 ++
1 file changed, 2 insertions(+)
--
1.8.3.1
next reply other threads:[~2021-08-19 16:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-19 15:12 Mihai Carabas [this message]
2021-08-19 15:12 ` [PATCH v3] misc/pvpanic: fix set driver data Mihai Carabas
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=1629385946-4584-1-git-send-email-mihai.carabas@oracle.com \
--to=mihai.carabas@oracle.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=arnd@arndb.de \
--cc=christophe.jaillet@wanadoo.fr \
--cc=gregkh@linuxfoundation.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.