summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/syscall.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 58fb967499..019af632df 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -6772,6 +6772,9 @@ static abi_long do_syscall1(void *cpu_env, int num, abi_long arg1,
}
return ret;
case TARGET_NR_write:
+ if (arg2 == 0 && arg3 == 0) {
+ return get_errno(safe_write(arg1, 0, 0));
+ }
if (!(p = lock_user(VERIFY_READ, arg2, arg3, 1)))
return -TARGET_EFAULT;
if (fd_trans_target_to_host_data(arg1)) {
.git/commit/drivers?id=9f17d516416c88dfe18f4deee508fce763ddedb5'>Merge branch 'bkl' into for-linusJiri Kosina2010-08-041-42/+12Star | |\ \ \ \ \ \ \ \ | | * | | | | | | | HID: hiddev: use usb_find_interface, get rid of BKLArnd Bergmann2010-07-131-42/+12Star | | | | | | | | | | | | \ \ \ \ \ \ \ \ | | \ \ \ \ \ \ \ \ | | \ \ \ \ \ \ \ \ | *---. \ \ \ \ \ \ \ \ Merge branches 'magicmouse', 'roccat' and 'vec-pedal' into for-linusJiri Kosina2010-08-049-62/+98 | |\ \ \ \ \ \ \ \ \ \ \ | | | | * | | | | | | | | HID: Force input registration for "VEC footpedal"Daniel Mack2010-07-192-0/+4 | | | | * | | | | | | | | HID: add HID_QUIRK_HIDINPUT_FORCEDaniel Mack2010-07-191-0/+2 | | | | * | | | | | | | | HID: hid-input.c: indentation fixesDaniel Mack2010-07-191-9/+9 | | | | |/ / / / / / / / | | | * | | | | | | | | HID: roccat: remove obsolete kone_abi_version sysfs attributeStefan Achatz2010-06-212-18/+0Star | | | * | | | | | | | | HID: roccat: fix offset errors in bin_attribute readStefan Achatz2010-06-211-2/+2 | | | * | | | | | | | | HID: roccat: introduce missing kfreeJulia Lawall2010-06-021-3/+6 | | | * | | | | | | | | HID: roccat: change kone_driver_version to kone_abi_versionStefan Achatz2010-05-312-7/+7 | | | * | | | | | | | | HID: roccat: fix whitespace warning from checkpatch.plStefan Achatz2010-05-311-1/+1 | | | * | | | | | | | | HID: roccat: remove obsolete commentStefan Achatz2010-05-311-5/+0Star | | * | | | | | | | | | HID: magicmouse: Correct parsing of large X and Y motions.Michael Poole2010-07-111-2/+2 | | * | | | | | | | | | HID: magicmouse: report last touch upChase Douglas2010-07-111-2/+20 | | * | | | | | | | | | HID: magicmouse: enable horizontal scrollingChase Douglas2010-06-241-6/+19 | | * | | | | | | | | | HID: magicmouse: add param for scroll speedChase Douglas2010-06-241-15/+28 | | * | | | | | | | | | HID: magicmouse: properly account for scroll movement in stateChase Douglas2010-06-241-1/+2 | | * | | | | | | | | | HID: magicmouse: disable and add module param for scroll accelerationChase Douglas2010-06-041-1/+7 | | * | | | | | | | | | HID: magicmouse: scroll on entire surface, not just middle of mouseChase Douglas2010-06-041-3/+2Star | | |/ / / / / / / / / | * | | | | | | | | | Merge branch 'acrux' into for-linusJiri Kosina2010-08-045-1/+187 | |\ \ \ \ \ \ \ \ \ \ | | * | | | | | | | | | HID: fix up Kconfig entry for ACRUX driverJiri Kosina2010-07-191-1/+0Star | | * | | | | | | | | | HID: add ACRUX game controller force feedback supportSergei Kolzun2010-07-195-0/+187 | | | |/ / / / / / / / | | |/| | | | | | | | | * | | | | | | | | | Merge branch 'upstream-fixes' into for-linusJiri Kosina2010-08-045-8/+16 | |\ \ \ \ \ \ \ \ \ \ | | * | | | | | | | | | Revert "HID: add support for the Wacom Intuos 4 wireless"Jiri Kosina2010-07-203-3/+1Star | | * | | | | | | | | | HID: Add support for Conceptronic CLLRCMCEKees Bakker2010-07-134-2/+12 | | |/ / / / / / / / / | * | | | | | | | | | Merge branch 'upstream' into for-linusJiri Kosina2010-08-048-74/+276 | |\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / | |/| | | | | | | | | | | * | | | | | | | | HID: ignore digitizer usage Undefined (0x00)Forest Bond2010-07-131-0/+3 | | * | | | | | | | | HID: hid-ids.h: Whitespace fixup, align using TABsKees Bakker2010-07-121-20/+20 | | * | | | | | | | | HID: picolcd: implement refcounting of framebufferBruno Prémont2010-07-121-7/+103 | | * | | | | | | | | HID: picolcd: do not reallocate memory on depth changeBruno Prémont2010-07-121-15/+12Star | | * | | | | | | | | HID: picolcd: Add minimal palette required by fbcon on 8bppBruno Prémont2010-07-121-11/+51 | | * | | | | | | | | HID: picolcd: fix deferred_io init/cleanup to fb orderingBruno Prémont2010-07-111-2/+2 | | * | | | | | | | | HID: hid-ids.h: keep vendor ids in alphabetical orderKees Bakker2010-07-111-21/+21 | | * | | | | | | | | HID: add proper support for Elecom BM084 bluetooth mouseRichard Nauber2010-06-285-0/+68 | | * | | | | | | | | HID: remove unused variable from hidraw_readStefan Achatz2010-05-251-2/+0Star | | | |/ / / / / / / | | |/| | | | | | | * | | | | | | | | | Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6Linus Torvalds2010-08-058-169/+344 |\ \ \ \ \ \ \ \ \ \ | * | | | | | | | | | random: Reorder struct entropy_store to remove padding on 64bits Richard Kennedy2010-07-311-1/+1 | * | | | | | | | | | crypto: geode_aes - Convert pci_table entries to PCI_VDEVICE (if PCI_ANY_ID i...Peter Huewe2010-07-191-1/+1 | * | | | | | | | | | crypto: hifn_795x - Remove unused ctx variableJustin P. Mattock2010-07-141-4/+0Star | * | | | | | | | | | hwrng: n2-drv - remove casts from void*Kulikov Vasiliy2010-07-051-1/+1 | * | | | | | | | | | crypto: talitos - fix ahash for multiple of blocksizeLee Nipper2010-06-161-37/+40 | * | | | | | | | | | Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/crypto-2.6Herbert Xu2010-05-26