Re: [PATCH 2/2] [RFC] serial_core: Avoid NULL pointer dereference in uart_close()

2014-03-27 Thread Geert Uytterhoeven
Hi Peter, On Wed, Mar 26, 2014 at 9:10 PM, Peter Hurley wrote: > On 03/26/2014 02:58 PM, Geert Uytterhoeven wrote: >> Thanks for your comments! > > Not a problem; just wanted to save you some time and frustration :) Much appreciated! >> On Fri, Mar 21, 2014 at 9:29 PM, Peter Hurley >> wrote:

Re: [PATCH 2/2] [RFC] serial_core: Avoid NULL pointer dereference in uart_close()

2014-03-27 Thread Geert Uytterhoeven
Hi Peter, On Wed, Mar 26, 2014 at 9:10 PM, Peter Hurley pe...@hurleysoftware.com wrote: On 03/26/2014 02:58 PM, Geert Uytterhoeven wrote: Thanks for your comments! Not a problem; just wanted to save you some time and frustration :) Much appreciated! On Fri, Mar 21, 2014 at 9:29 PM, Peter

Re: [PATCH 2/2] [RFC] serial_core: Avoid NULL pointer dereference in uart_close()

2014-03-26 Thread Peter Hurley
On 03/26/2014 02:58 PM, Geert Uytterhoeven wrote: Hi Peter, Thanks for your comments! Not a problem; just wanted to save you some time and frustration :) On Fri, Mar 21, 2014 at 9:29 PM, Peter Hurley wrote: On 03/17/2014 09:10 AM, Geert Uytterhoeven wrote: From: Geert Uytterhoeven When

Re: [PATCH 2/2] [RFC] serial_core: Avoid NULL pointer dereference in uart_close()

2014-03-26 Thread Geert Uytterhoeven
Hi Peter, Thanks for your comments! On Fri, Mar 21, 2014 at 9:29 PM, Peter Hurley wrote: > On 03/17/2014 09:10 AM, Geert Uytterhoeven wrote: >> From: Geert Uytterhoeven >> When unbinding a serial driver that's being used as a serial console, >> the kernel may crash with a NULL pointer

Re: [PATCH 2/2] [RFC] serial_core: Avoid NULL pointer dereference in uart_close()

2014-03-26 Thread Geert Uytterhoeven
Hi Peter, Thanks for your comments! On Fri, Mar 21, 2014 at 9:29 PM, Peter Hurley pe...@hurleysoftware.com wrote: On 03/17/2014 09:10 AM, Geert Uytterhoeven wrote: From: Geert Uytterhoeven geert+rene...@linux-m68k.org When unbinding a serial driver that's being used as a serial console, the

Re: [PATCH 2/2] [RFC] serial_core: Avoid NULL pointer dereference in uart_close()

2014-03-26 Thread Peter Hurley
On 03/26/2014 02:58 PM, Geert Uytterhoeven wrote: Hi Peter, Thanks for your comments! Not a problem; just wanted to save you some time and frustration :) On Fri, Mar 21, 2014 at 9:29 PM, Peter Hurley pe...@hurleysoftware.com wrote: On 03/17/2014 09:10 AM, Geert Uytterhoeven wrote: From:

Re: [PATCH 2/2] [RFC] serial_core: Avoid NULL pointer dereference in uart_close()

2014-03-21 Thread Peter Hurley
On 03/17/2014 09:10 AM, Geert Uytterhoeven wrote: From: Geert Uytterhoeven When unbinding a serial driver that's being used as a serial console, the kernel may crash with a NULL pointer dereference in a uart_*() function called from uart_close () (e.g. uart_flush_buffer() or

Re: [PATCH 2/2] [RFC] serial_core: Avoid NULL pointer dereference in uart_close()

2014-03-21 Thread Peter Hurley
On 03/17/2014 09:10 AM, Geert Uytterhoeven wrote: From: Geert Uytterhoeven geert+rene...@linux-m68k.org When unbinding a serial driver that's being used as a serial console, the kernel may crash with a NULL pointer dereference in a uart_*() function called from uart_close () (e.g.

[PATCH 2/2] [RFC] serial_core: Avoid NULL pointer dereference in uart_close()

2014-03-17 Thread Geert Uytterhoeven
From: Geert Uytterhoeven When unbinding a serial driver that's being used as a serial console, the kernel may crash with a NULL pointer dereference in a uart_*() function called from uart_close () (e.g. uart_flush_buffer() or uart_chars_in_buffer()). To fix this, let uart_close() check for

[PATCH 2/2] [RFC] serial_core: Avoid NULL pointer dereference in uart_close()

2014-03-17 Thread Geert Uytterhoeven
From: Geert Uytterhoeven geert+rene...@linux-m68k.org When unbinding a serial driver that's being used as a serial console, the kernel may crash with a NULL pointer dereference in a uart_*() function called from uart_close () (e.g. uart_flush_buffer() or uart_chars_in_buffer()). To fix this, let