Staging
v0.8.1
https://github.com/torvalds/linux
Revision 939b20022765bc338b0f72cbf1eed60a907398d7 authored by Johan Hovold on 30 November 2016, 14:29:52 UTC, committed by David S. Miller on 02 December 2016, 15:42:46 UTC
Make sure to call any exit() callback to undo the effect of init()
before returning on late probe errors.

Fixes: cf3f047b9af4 ("stmmac: move hw init in the probe (v2)")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 2d22265
Raw File
Tip revision: 939b20022765bc338b0f72cbf1eed60a907398d7 authored by Johan Hovold on 30 November 2016, 14:29:52 UTC
net: ethernet: stmmac: dwmac-generic: fix probe error path
Tip revision: 939b200
gcc-goto.sh
#!/bin/sh
# Test for gcc 'asm goto' support
# Copyright (C) 2010, Jason Baron <jbaron@redhat.com>

cat << "END" | $@ -x c - -c -o /dev/null >/dev/null 2>&1 && echo "y"
int main(void)
{
#if defined(__arm__) || defined(__aarch64__)
	/*
	 * Not related to asm goto, but used by jump label
	 * and broken on some ARM GCC versions (see GCC Bug 48637).
	 */
	static struct { int dummy; int state; } tp;
	asm (".long %c0" :: "i" (&tp.state));
#endif

entry:
	asm goto ("" :::: entry);
	return 0;
}
END
back to top