diff options
| author | 2021-02-05 23:28:38 +0100 | |
|---|---|---|
| committer | 2021-02-16 19:40:20 -0800 | |
| commit | 5b8e64f1ada37574b9ab124e1414af2adf688a19 (patch) | |
| tree | bec74af4801780cf4e0f20bba5c855573f5641c0 /samples/git:/ssh:/git@git.zx2c4.com | |
| parent | device-dax: Fix default return code of range_parse() (diff) | |
| download | linux-dev-5b8e64f1ada37574b9ab124e1414af2adf688a19.tar.xz linux-dev-5b8e64f1ada37574b9ab124e1414af2adf688a19.zip | |
device-dax: Prevent registering drivers without probe callback
The bus probe function dax_bus_probe() calls the probe callback without
checking it to be non-NULL. Prevent a NULL pointer exception if a driver
without a probe function is registered by refusing to register this
driver.
Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Link: https://lore.kernel.org/r/20210205222842.34896-2-uwe@kleine-koenig.org
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'samples/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
