summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/pstore/pstore_tests
blob: f25d2a349a60964cc7b5dc62fa5689eb6a48457d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

# pstore_tests - Check pstore's behavior before crash/reboot
#
# Copyright (C) Hitachi Ltd., 2015
#  Written by Hiraku Toyooka <hiraku.toyooka.gu@hitachi.com>
#
# Released under the terms of the GPL v2.

. ./common_tests

prlog -n "Checking pstore console is registered ... "
dmesg | grep -q "console \[pstore"
show_result $?

prlog -n "Checking /dev/pmsg0 exists ... "
test -e /dev/pmsg0
show_result $?

prlog -n "Writing unique string to /dev/pmsg0 ... "
if [ -e "/dev/pmsg0" ]; then
    echo "${TEST_STRING_PATTERN}""$UUID" > /dev/pmsg0
    show_result $?
    echo "$UUID" > $TOP_DIR/uuid
else
    prlog "FAIL"
    rc=1
fi

exit $rc
38ef365244d3c41084&id2=51ebfc92b72b4f7dac1ab45683bf56741e454b8c'>diff)
PCI/MSI: pci-xgene-msi: Fix CPU hotplug registration handling
The conversion to the new hotplug state machine introduced a regression where a successful hotplug registration would be treated as an error, effectively disabling the MSI driver forever. Fix it by doing the proper check on the return value. Fixes: 9c248f8896e6 ("PCI/xgene-msi: Convert to hotplug state machine") Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Tested-by: Duc Dang <dhdang@apm.com> CC: Thomas Gleixner <tglx@linutronix.de> CC: stable@vger.kernel.org
Diffstat (limited to 'fs/xfs/xfs_symlink.h')