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

Commit 4d875e55 authored by Vikash Garodia's avatar Vikash Garodia Committed by Govindaraj Rajagopal
Browse files

msm: vidc: Fix 32-bit compilation issues



Typecast the msm_vidc_arg argument correctly

CRs-Fixed: 2546421
Change-Id: I781767befa529cbe9366d67cb0773d97eb9f1beb
Signed-off-by: default avatarVikash Garodia <vgarodia@codeaurora.org>
Signed-off-by: default avatarGovindaraj Rajagopal <grajagop@codeaurora.org>
parent da17976d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/* Copyright (c) 2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -17,7 +17,7 @@ static int convert_from_user(struct msm_vidc_arg *kp, unsigned long arg)
{
	int rc = 0;
	int i;
	struct msm_vidc_arg __user *up = compat_ptr(arg);
	struct msm_vidc_arg __user *up = (struct msm_vidc_arg __user *)arg;

	if (!kp || !up) {
		dprintk(VIDC_ERR, "%s: invalid params\n", __func__);
@@ -109,7 +109,7 @@ static int convert_to_user(struct msm_vidc_arg *kp, unsigned long arg)
{
	int rc = 0;
	int i;
	struct msm_vidc_arg __user *up = compat_ptr(arg);
	struct msm_vidc_arg __user *up = (struct msm_vidc_arg __user *)arg;

	if (!kp || !up) {
		dprintk(VIDC_ERR, "%s: invalid params\n", __func__);