linux/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 ieee1394: eth1394: don't autoload by hotplug when ohci1394 starts 2007-04-30 00:00:30 +02:00
config_roms.h ieee1394: eth1394: don't autoload by hotplug when ohci1394 starts 2007-04-30 00:00:30 +02:00
csr.c ieee1394: usecs_to_jiffies takes unsigned int argument 2006-12-07 21:29:08 +01:00
csr.h [PATCH] ieee1394: clean up declarations of hpsb_*_config_rom 2006-07-03 12:02:31 -04:00
csr1212.c ieee1394: csr1212: log if devices have CRC errors in their ROM 2007-04-30 00:00:29 +02:00
csr1212.h ieee1394: csr1212: coding style 2007-04-30 00:00:28 +02:00
dma.c ieee1394: move some comments from declaration to definition 2007-04-30 00:00:28 +02:00
dma.h ieee1394: move some comments from declaration to definition 2007-04-30 00:00:28 +02:00
dv1394-private.h [PATCH] ieee1394: dv1394: sem2mutex conversion 2006-07-03 12:02:32 -04:00
dv1394.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
dv1394.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
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 ieee1394: move some comments from declaration to definition 2007-04-30 00:00:28 +02:00
highlevel.h ieee1394: move some comments from declaration to definition 2007-04-30 00:00:28 +02:00
hosts.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
hosts.h ieee1394: remove usage of skb_queue as packet queue 2007-04-30 00:00:29 +02:00
ieee1394-ioctl.h ieee1394: cycle timer read extension for raw1394 2007-02-17 14:39:33 +01:00
ieee1394.h [PATCH] ieee1394: coding style and comment fixes in midlayer header files 2006-07-03 12:02:28 -04:00
ieee1394_core.c ieee1394: unexport highlevel_host_reset 2007-04-30 00:00:31 +02:00
ieee1394_core.h ieee1394: add comments in struct hpsb_packet 2007-07-10 00:07:36 +02:00
ieee1394_hotplug.h [PATCH] ieee1394: remove redundant code from ieee1394_hotplug.h 2006-07-03 12:02:30 -04:00
ieee1394_transactions.c ieee1394: send async streams at S100 2007-04-30 00:00:30 +02:00
ieee1394_transactions.h ieee1394: move some comments from declaration to definition 2007-04-30 00:00:28 +02:00
ieee1394_types.h ieee1394: safer definition of empty macros 2006-09-17 19:31:20 +02:00
iso.c ieee1394: iso.c needs sched.h 2007-04-30 00:00:29 +02:00
iso.h ieee1394: move some comments from declaration to definition 2007-04-30 00:00:28 +02:00
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 the scheduled IEEE1394_OUI_DB removal 2007-02-08 20:57:43 +01:00
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 ieee1394: move some comments from declaration to definition 2007-04-30 00:00:28 +02:00
pcilynx.c i2c: Declare more i2c_adapter parent devices 2007-02-13 22:09:03 +01:00
pcilynx.h Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
raw1394-private.h ieee1394: raw1394: add comments on lock usage 2006-12-07 21:28:06 +01:00
raw1394.c ieee1394: raw1394: Fix write() for 32bit userland on 64bit kernel 2007-07-10 00:07:37 +02:00
raw1394.h ieee1394: cycle timer read extension for raw1394 2007-02-17 14:39:33 +01:00
sbp2.c ieee1394: sbp2: offer SAM-conforming target port ID in sysfs 2007-05-31 21:40:13 +02:00
sbp2.h ieee1394: sbp2: remove unnecessary alignments of struct members 2007-04-30 00:00:27 +02:00
video1394.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
video1394.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00