serial: sc16is7xx: Correct initialization of s->clk
authorJon Ringle <jringle@gridpoint.com>
Fri, 25 Jul 2014 17:53:36 +0000 (13:53 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 27 Jul 2014 18:50:38 +0000 (11:50 -0700)
commitdc824ebed081ed6227772b3cc5f9c7a6683fb489
treeae20896a4bde8c38428dc593b684d6a6633dc7c2
parentc8ed99d4f6a8ac03f397877d25428698f461a2af
serial: sc16is7xx: Correct initialization of s->clk

The s->clk never gets setup in sc16is7xx_probe() and instead was using a
local clk variable, but then testing the uninitialized s->clk during
teardown

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jon Ringle <jringle@gridpoint.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sc16is7xx.c