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)
commit26e1e8d1d1cfa914b95b5dab001a6ed898872755
treec095b4c89c879f604c5cd9ba2f5968810bd1715a
parente114474cf5c7fe7ab94dd4f5938ffa51c9af77c4
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