diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-20 11:27:18 +0100 | 
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-20 11:27:18 +0100 | 
| commit | 4958134df54c2c84e9c22ea042761d439164d26e (patch) | |
| tree | 503177afab11f7d25b12a84ce25b481d305c51ba /lib/bug.c | |
| parent | c4f528795d1add8b63652673f7262729f679c6c1 (diff) | |
| parent | c698ca5278934c0ae32297a8725ced2e27585d7f (diff) | |
Merge 4.16-rc6 into tty-next
We want the serial/tty fixes in here as well.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/bug.c')
| -rw-r--r-- | lib/bug.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bug.c b/lib/bug.c index c1b0fad31b10..1077366f496b 100644 --- a/lib/bug.c +++ b/lib/bug.c @@ -150,6 +150,8 @@ enum bug_trap_type report_bug(unsigned long bugaddr, struct pt_regs *regs)  		return BUG_TRAP_TYPE_NONE;  	bug = find_bug(bugaddr); +	if (!bug) +		return BUG_TRAP_TYPE_NONE;  	file = NULL;  	line = 0; @@ -191,7 +193,7 @@ enum bug_trap_type report_bug(unsigned long bugaddr, struct pt_regs *regs)  	if (file)  		pr_crit("kernel BUG at %s:%u!\n", file, line);  	else -		pr_crit("Kernel BUG at %p [verbose debug info unavailable]\n", +		pr_crit("Kernel BUG at %pB [verbose debug info unavailable]\n",  			(void *)bugaddr);  	return BUG_TRAP_TYPE_BUG;  | 
