summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorErik Hugne <erik.hugne@ericsson.com>2013-08-28 09:29:58 +0200
committerDavid S. Miller <davem@davemloft.net>2013-08-30 16:06:57 -0400
commit2c8d85182348021fc0a1bed193a4be4161dc8364 (patch)
treeef957194fcc7e49727cc687ded97df358841486c /tools/perf/scripts/python
parenteb8895debe1baba41fcb62c78a16f0c63c21662a (diff)
downloadkernel-2c8d85182348021fc0a1bed193a4be4161dc8364.tar.gz
tipc: set sk_err correctly when connection fails
Should a connect fail, if the publication/server is unavailable or due to some other error, a positive value will be returned and errno is never set. If the application code checks for an explicit zero return from connect (success) or a negative return (failure), it will not catch the error and subsequent send() calls will fail as shown from the strace snippet below. socket(0x1e /* PF_??? */, SOCK_SEQPACKET, 0) = 3 connect(3, {sa_family=0x1e /* AF_??? */, sa_data="\2\1\322\4\0\0\322\4\0\0\0\0\0\0"}, 16) = 111 sendto(3, "test", 4, 0, NULL, 0) = -1 EPIPE (Broken pipe) The reason for this behaviour is that TIPC wrongly inverts error codes set in sk_err. Signed-off-by: Erik Hugne <erik.hugne@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
>Bartosz Golaszewski 2017-07-08Merge tag 'pci-v4.13-changes' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds 2017-07-06Merge tag 'dma-mapping-4.13' of git://git.infradead.org/users/hch/dma-mappingLinus Torvalds 2017-07-03Merge tag 'char-misc-4.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds 2017-06-28PCI: Add devm_pci_alloc_host_bridge() interfaceLorenzo Pieralisi 2017-06-28dma-mapping: replace dmam_alloc_noncoherent with dmam_alloc_attrsChristoph Hellwig 2017-06-28dma-mapping: remove dmam_free_noncoherentChristoph Hellwig 2017-06-21irq/generic-chip: Provide devm_irq_setup_generic_chip()Bartosz Golaszewski 2017-06-21irq/generic-chip: Provide devm_irq_alloc_generic_chip()Bartosz Golaszewski 2017-06-03mux: minimal mux subsystemPeter Rosin 2017-06-03devres: trivial whitespace fixPeter Rosin 2017-04-24PCI: Implement devm_pci_remap_cfgspace()Lorenzo Pieralisi 2017-02-10irqdesc: Add a resource managed version of irq_alloc_descs()Bartosz Golaszewski 2016-11-15devres: add devm_alloc_percpu()Madalin Bucur 2016-10-06Merge tag 'for-v4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/lin...Linus Torvalds 2016-09-04iio: add resource managed triggered buffer init helpersGregor Boirie 2016-09-04iio:trigger: add resource managed (un)registerGregor Boirie 2016-08-16power: reset: reboot-mode: Add managed resource APIBjorn Andersson 2016-08-01Merge tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/a...Linus Torvalds 2016-07-17watchdog: Add a device managed API for watchdog_register_device()Neil Armstrong 2016-05-30reset: add devm_reset_controller_register APIMasahiro Yamada 2016-05-20Merge tag 'staging-4.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds 2016-05-20Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/cl...Linus Torvalds 2016-05-20Merge tag 'mfd-for-linus-4.7' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds 2016-05-19Merge tag 'docs-for-linus' of git://git.lwn.net/linuxLinus Torvalds 2016-04-28Documentation: devres: Add missing INPUT functionAlexander Kurz 2016-04-21pinctrl: Add resource management devm_pinctrl_{register, unregister}Laxman Dewangan 2016-04-19clk: Add {devm_}clk_hw_{register,unregister}() APIsStephen Boyd 2016-04-19iio: Add resource managed APIs devm_iio_channel_{get,release) in devresLaxman Dewangan 2016-04-19mfd: Add devm_mfd_add_devices() in list of managed interfacesLaxman Dewangan 2016-02-23gpio: Add missing devm_gpio_ wrapper in devres.txtLaxman Dewangan 2016-02-23gpio: Add resource management devm_gpio_chip_{add_data,remove}Laxman Dewangan