-
Matthias Kaehlcke authored
commit 0c3a8f8b upstream. Apparently netpoll_setup() assumes that netpoll.dev_name is a pointer when checking if the device name is set: if (np->dev_name) { ... However the field is a character array, therefore the condition always yields true. Check instead whether the first byte of the array has a non-zero value. Signed-off-by:
Matthias Kaehlcke <mka@chromium.org> Signed-off-by:
David S. Miller <davem@davemloft.net> Signed-off-by:
Nathan Chancellor <natechancellor@gmail.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
64696ba9