]> git.baikalelectronics.ru Git - kernel.git/commit
serial: isicomm: handle running out of slots
authorDan Carpenter <error27@gmail.com>
Fri, 7 May 2010 08:30:41 +0000 (10:30 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 May 2010 16:34:30 +0000 (09:34 -0700)
commitb71c0184b00f4d86128ea4d6f2cf7304c962acde
treec095b4c89c879f604c5cd9ba2f5968810bd1715a
parent5b29d0746b93cce42caf2c4605c70aad653fa615
serial: isicomm: handle running out of slots

This patch makes it return -ENODEV if we run out of empty slots in the
probe function.  It's unlikely to happen, but it makes the static
checkers happy.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/isicom.c