[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1629301110-2714-1-git-send-email-mihai.carabas@oracle.com>
Date: Wed, 18 Aug 2021 18:38:29 +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] misc/pvpanic: fix panic on accessing sysfs entries
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).
Mihai Carabas (1):
misc/pvpanic: fix set driver data
drivers/misc/pvpanic/pvpanic-mmio.c | 2 ++
drivers/misc/pvpanic/pvpanic-pci.c | 2 ++
2 files changed, 4 insertions(+)
--
1.8.3.1
Powered by blists - more mailing lists