Skip to content

Commit

Permalink
Merge "msm: adsprpc: Fix compat ioctl invoke failure"
Browse files Browse the repository at this point in the history
  • Loading branch information
qctecmdr authored and Gerrit - the friendly Code Review server committed May 24, 2022
2 parents 82773f9 + 2930998 commit 6dd9e34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/char/adsprpc_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ struct compat_fastrpc_ioctl_dsp_capabilities {
static int compat_get_fastrpc_ioctl_invoke(
struct compat_fastrpc_ioctl_invoke_crc __user *inv32,
struct fastrpc_ioctl_invoke_crc __user **inva,
unsigned int cmd, unsigned int sc)
unsigned int cmd, compat_uint_t sc)
{
compat_uint_t u;
compat_size_t s;
Expand Down Expand Up @@ -520,14 +520,14 @@ long compat_fastrpc_device_ioctl(struct file *filp, unsigned int cmd,
case COMPAT_FASTRPC_IOCTL_INVOKE_ATTRS:
case COMPAT_FASTRPC_IOCTL_INVOKE_CRC:
{
struct compat_fastrpc_ioctl_invoke_crc __user *inv32;
struct fastrpc_ioctl_invoke_crc __user *inv;
struct compat_fastrpc_ioctl_invoke_crc __user *inv32 = NULL;
struct fastrpc_ioctl_invoke_crc __user *inv = NULL;

inv32 = compat_ptr(arg);
err = get_user(sc, &inv32->inv.sc);
if (err)
return err;

inv32 = compat_ptr(arg);
VERIFY(err, 0 == compat_get_fastrpc_ioctl_invoke(inv32,
&inv, cmd, sc));
if (err)
Expand Down

0 comments on commit 6dd9e34

Please sign in to comment.