projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
049e6dd
)
PCC: fix dereference of ERR_PTR
author
Sudip Mukherjee
<sudipm.mukherjee@gmail.com>
Wed, 16 Sep 2015 14:04:24 +0000
(19:34 +0530)
committer
Jassi Brar
<jaswinder.singh@linaro.org>
Fri, 16 Oct 2015 05:16:07 +0000
(10:46 +0530)
get_pcc_channel() does not return NULL on error it returns the error code
in ERR_PTR, but we have been checking it for NULL.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
drivers/mailbox/pcc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mailbox/pcc.c
b/drivers/mailbox/pcc.c
index 68885a82e7046456d95febb9381721931d2f3b2f..45d85aea9955404d0c4567f33863e0e3f500674f 100644
(file)
--- a/
drivers/mailbox/pcc.c
+++ b/
drivers/mailbox/pcc.c
@@
-122,7
+122,7
@@
struct mbox_chan *pcc_mbox_request_channel(struct mbox_client *cl,
*/
chan = get_pcc_channel(subspace_id);
- if (
!chan
|| chan->cl) {
+ if (
IS_ERR(chan)
|| chan->cl) {
dev_err(dev, "Channel not found for idx: %d\n", subspace_id);
return ERR_PTR(-EBUSY);
}