]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: max3100: Fix error case
authorAlan Cox <alan@linux.intel.com>
Mon, 17 Sep 2012 11:00:44 +0000 (12:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Sep 2012 11:45:29 +0000 (04:45 -0700)
commit3604d30d83db25d7f732acba875e6f6605db15b5
tree0c52f074e3d0a49119a2f1903ada4ef862b275fd
parent26e931baae4aeb0393ff95664c71770be99623b1
tty: serial: max3100: Fix error case

We don't want to free a random address if the entry is wrong, cover
this and WARN if it ever happens.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/max3100.c