diff options
author | Uwe Kleine-König <uwe@kleine-koenig.org> | 2021-02-06 01:28:38 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2021-02-17 06:40:20 +0300 |
commit | 5b8e64f1ada37574b9ab124e1414af2adf688a19 (patch) | |
tree | bec74af4801780cf4e0f20bba5c855573f5641c0 /scripts/patch-kernel | |
parent | 7323fb22f05ff1d20498d267828870a5fbbaebd6 (diff) | |
download | linux-5b8e64f1ada37574b9ab124e1414af2adf688a19.tar.xz |
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 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions