Loading drivers/media/platform/msm/npu/npu_mgr.c +11 −0 Original line number Diff line number Diff line Loading @@ -579,6 +579,17 @@ static struct npu_network *alloc_network(struct npu_host_ctx *ctx, WARN_ON(!mutex_is_locked(&ctx->lock)); for (i = 0; i < MAX_LOADED_NETWORK; i++) { if ((network->id != 0) && (network->client != client)) { pr_err("NPU is used by other client now\n"); return NULL; } network++; } network = ctx->networks; for (i = 0; i < MAX_LOADED_NETWORK; i++) { if (network->id == 0) break; Loading Loading
drivers/media/platform/msm/npu/npu_mgr.c +11 −0 Original line number Diff line number Diff line Loading @@ -579,6 +579,17 @@ static struct npu_network *alloc_network(struct npu_host_ctx *ctx, WARN_ON(!mutex_is_locked(&ctx->lock)); for (i = 0; i < MAX_LOADED_NETWORK; i++) { if ((network->id != 0) && (network->client != client)) { pr_err("NPU is used by other client now\n"); return NULL; } network++; } network = ctx->networks; for (i = 0; i < MAX_LOADED_NETWORK; i++) { if (network->id == 0) break; Loading