[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1629380481-4363-1-git-send-email-mihai.carabas@oracle.com>
Date: Thu, 19 Aug 2021 16:41:20 +0300
From: Mihai Carabas <mihai.carabas@...cle.com>
To: arnd@...db.de, gregkh@...uxfoundation.org,
andriy.shevchenko@...ux.intel.com, christophe.jaillet@...adoo.fr,
mihai.carabas@...cle.com, linux-kernel@...r.kernel.org
Subject: [PATCH v2] misc/pvpanic: fix set driver data
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()
Mihai Carabas (1):
misc/pvpanic: fix set driver data
drivers/misc/pvpanic/pvpanic.c | 2 ++
1 file changed, 2 insertions(+)
--
1.8.3.1
Powered by blists - more mailing lists