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

Commit 9e366537 authored by Aran Dalton's avatar Aran Dalton Committed by ARDA Allwinner
Browse files

ANDROID: usb: gadget: f_accessory: add compat_ioctl support



On Android 32-bit system, the following Cts Verifier testcase failed:

manualTests#com.android.cts.verifier.usb.accessory.UsbAccessoryTestActivity

The reason is that compat_ioctl() needs to be called.
So let's add compat_ioctl() for 32-bit applications to solve this issue.

Bug: 223101878
Change-Id: I6e1f797d919494d293184411041955c33ad08aef
Signed-off-by: default avatarAran Dalton <arda@allwinnertech.com>
(cherry picked from commit 77bf53b4861491ad49414d8fceefda2602274519)
parent 55f3c636
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -854,6 +854,7 @@ static const struct file_operations acc_fops = {
	.read = acc_read,
	.read = acc_read,
	.write = acc_write,
	.write = acc_write,
	.unlocked_ioctl = acc_ioctl,
	.unlocked_ioctl = acc_ioctl,
	.compat_ioctl = acc_ioctl,
	.open = acc_open,
	.open = acc_open,
	.release = acc_release,
	.release = acc_release,
};
};