Andy Whitcroft 543691a6cd tty_register_driver: only allocate tty instances when defined
If device->num is zero we attempt to kmalloc() zero bytes.  When SLUB is
enabled this returns a null pointer and take that as an allocation failure
and fail the device register.  Check for no devices and avoid the
allocation.

[akpm: opportunistic kzalloc() conversion]
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-07 12:12:53 -07:00
..
2007-05-07 12:12:51 -07:00
2007-04-26 14:32:03 -04:00
2007-05-04 17:59:07 -07:00
2007-05-07 12:12:51 -07:00
2007-05-07 12:12:50 -07:00
2007-04-27 10:57:30 -07:00
2007-05-07 12:12:51 -07:00
2007-02-11 10:51:24 -08:00