summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2017-07-12 13:42:37 -0700
committerDan Williams <dan.j.williams@intel.com>2017-07-17 11:43:58 -0700
commit43fe51e11c194a6576634585f81ba33e104194a5 (patch)
treecf27724a7c3a0c200e167068d1e2346dedbc5c52 /drivers/acpi
parent4e3f0701f25ab194c5362576b1146a1e6cc6c2e7 (diff)
downloadlinux-stable-43fe51e11c194a6576634585f81ba33e104194a5.tar.gz
linux-stable-43fe51e11c194a6576634585f81ba33e104194a5.tar.bz2
linux-stable-43fe51e11c194a6576634585f81ba33e104194a5.zip
device-dax: fix 'passing zero to ERR_PTR()' warning
Dan Carpenter reports: The patch 7b6be8444e0f: "dax: refactor dax-fs into a generic provider of 'struct dax_device' instances" from Apr 11, 2017, leads to the following static checker warning: drivers/dax/device.c:643 devm_create_dev_dax() warn: passing zero to 'ERR_PTR' Fix the case where we inadvertently leak 0 to ERR_PTR() by setting at every error case, and make it clear that 'count' is never 0. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/acpi')
0 files changed, 0 insertions, 0 deletions