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

Commit 2dee9773 authored by Asha Magadi Venkateshamurthy's avatar Asha Magadi Venkateshamurthy Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: Use kvfree instead of kfree



memory allocated using kvmalloc from vmemdup_user should use kvfree
to free the memory.

Change-Id: I1eafe3628453d2c557994c7eb14f115eee144d4a
Signed-off-by: default avatarAsha Magadi Venkateshamurthy <amagad@codeaurora.org>
parent 2ddb7d0a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -292,7 +292,8 @@ static long wan_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
	default:
		retval = -ENOTTY;
	}
	kfree(param);
	if (!IS_ERR(param))
		kvfree(param);
	return retval;
}