android_kernel_xiaomi_sm8350/drivers/ieee1394
Petr Vandrovec 883b97eaf2 ieee1394: raw1394: Fix write() for 32bit userland on 64bit kernel
* write(fd, buf, 52) from 32bit app was returning 56.  Most of callers did not
  care, but some (arm registration) did, and anyway it looks bad if request for
  writing 52 bytes returns 56.  And returning sizeof anything in 'int' is not
  good as well.  So all functions now return '0' instead of
  sizeof(struct raw1394_request) on success, and write() itself provides correct
  return value (it just returns value it was asked to write on success as raw1394
  does not do any partial writes at all).

* Related to this was problem that write() could have returned 0 when kernel
  state would become corrupted and moved to different state than
  opened/initialized/connected.  Now it returns -EBADFD which seemed appropriate.

Signed-off-by: Petr Vandrovec <petr@vandrovec.name>
Acked-by: Dan Dennedy <dan@dennedy.org>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> (split into 3 patches)
2007-07-10 00:07:37 +02:00
..
config_roms.c
config_roms.h
csr1212.c
csr1212.h
csr.c
csr.h
dma.c
dma.h
dv1394-private.h
dv1394.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
dv1394.h
eth1394.c ieee1394: fix to ether1394_tx in ether1394.c 2007-06-16 12:43:20 +02:00
eth1394.h ieee1394: eth1394: handle tlabel exhaustion 2007-05-27 23:20:59 +02:00
highlevel.c
highlevel.h
hosts.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
hosts.h
ieee1394_core.c
ieee1394_core.h ieee1394: add comments in struct hpsb_packet 2007-07-10 00:07:36 +02:00
ieee1394_hotplug.h
ieee1394_transactions.c
ieee1394_transactions.h
ieee1394_types.h
ieee1394-ioctl.h
ieee1394.h
iso.c
iso.h
Kconfig Merge branch 'juju' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6 2007-05-10 13:30:08 -07:00
Makefile
nodemgr.c ieee1394: sbp2: offer SAM-conforming target port ID in sysfs 2007-05-31 21:40:13 +02:00
nodemgr.h ieee1394: sbp2: offer SAM-conforming target port ID in sysfs 2007-05-31 21:40:13 +02:00
ohci1394.c ieee1394: ohci1394: remove dead CONFIG variable 2007-07-10 00:07:36 +02:00
ohci1394.h
pcilynx.c
pcilynx.h
raw1394-private.h
raw1394.c ieee1394: raw1394: Fix write() for 32bit userland on 64bit kernel 2007-07-10 00:07:37 +02:00
raw1394.h
sbp2.c ieee1394: sbp2: offer SAM-conforming target port ID in sysfs 2007-05-31 21:40:13 +02:00
sbp2.h
video1394.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
video1394.h