Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6c3bb11 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: mdss: Increase fbmem ref count before use"

parents aac0f92b 2f42b63f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1825,13 +1825,16 @@ static int mdp3_get_metadata(struct msm_fb_data_type *mfd,
		break;
	case metadata_op_get_ion_fd:
		if (mfd->fb_ion_handle &&  mfd->fb_ion_client) {
			get_dma_buf(mfd->fbmem_buf);
			metadata->data.fbmem_ionfd =
				ion_share_dma_buf_fd(mfd->fb_ion_client,
					mfd->fb_ion_handle);
			if (metadata->data.fbmem_ionfd < 0)
			if (metadata->data.fbmem_ionfd < 0) {
				dma_buf_put(mfd->fbmem_buf);
				pr_err("fd allocation failed. fd = %d\n",
						metadata->data.fbmem_ionfd);
			}
		}
		break;
	default:
		pr_warn("Unsupported request to MDP GET  META IOCTL.\n");