mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
Merge "msm: adsprpc: Validate smmu device is created before using it"
This commit is contained in:
commit
42372239bf
1 changed files with 4 additions and 2 deletions
|
|
@ -1136,9 +1136,11 @@ static int fastrpc_buf_alloc(struct fastrpc_file *fl, size_t size,
|
|||
struct fastrpc_buf *buf = NULL, *fr = NULL;
|
||||
struct hlist_node *n;
|
||||
|
||||
VERIFY(err, size > 0);
|
||||
if (err)
|
||||
VERIFY(err, size > 0 && fl->sctx->smmu.dev);
|
||||
if (err) {
|
||||
err = (fl->sctx->smmu.dev == NULL) ? -ENODEV : err;
|
||||
goto bail;
|
||||
}
|
||||
|
||||
if (!remote) {
|
||||
/* find the smallest buffer that fits in the cache */
|
||||
|
|
|
|||
Loading…
Reference in a new issue