diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2021-12-09 11:21:43 +0300 |
---|---|---|
committer | Jassi Brar <jaswinder.singh@linaro.org> | 2022-01-12 08:47:33 +0300 |
commit | 960c4056aadcf61983f8eaac159927a052f8cf01 (patch) | |
tree | df5fb10bdfdbf0b01d5d969db8071278f6dfc8ce /lib/test_kprobes.c | |
parent | af8d0f6d222d12ed7bba447e5eb277a5908b8968 (diff) | |
download | linux-960c4056aadcf61983f8eaac159927a052f8cf01.tar.xz |
mailbox: pcc: Avoid using the uninitialized variable 'dev'
Smatch static checker warns:
| drivers/mailbox/pcc.c:292 pcc_mbox_request_channel()
| error: uninitialized symbol 'dev'.
Fix the same by using pr_err instead of dev_err as the variable 'dev'
is uninitialized at that stage.
Fixes: ce028702ddbc ("mailbox: pcc: Move bulk of PCCT parsing into pcc_mbox_probe")
Cc: Jassi Brar <jassisinghbrar@gmail.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'lib/test_kprobes.c')
0 files changed, 0 insertions, 0 deletions