mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-10-24 23:31:01 +00:00
In the original code we dereferenced "pm8001_dev" before checking if it was null. This patch moves the dereference inside the condition. This was found by a static checker (smatch). I looked, but I couldn't tell if "pm8001_dev" dev was ever actually null. The approach in this patch seemed like the safest response. Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: Jack Wang <jack_wang@usish.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de> |
||
|---|---|---|
| .. | ||
| Makefile | ||
| pm8001_chips.h | ||
| pm8001_ctl.c | ||
| pm8001_ctl.h | ||
| pm8001_defs.h | ||
| pm8001_hwi.c | ||
| pm8001_hwi.h | ||
| pm8001_init.c | ||
| pm8001_sas.c | ||
| pm8001_sas.h | ||