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-03-04 20:40:50 +00:00
2007-05-05 14:55:20 -07:00
2007-04-27 10:57:29 -07:00
2007-05-06 13:20:10 -07:00
2007-05-02 19:02:35 -07:00
2007-02-20 17:10:14 -08:00
2007-05-07 12:12:51 -07:00
2007-05-03 15:13:45 -07:00
2007-04-25 22:28:23 -07:00
2007-03-05 07:57:51 -08:00
2007-05-07 12:12:53 -07:00
2007-04-25 14:27:06 -04:00
2007-04-25 22:29:03 -07:00
2007-04-26 14:32:03 -04:00
2007-05-02 22:08:26 +10:00
2007-03-16 19:25:03 -07:00
2007-02-12 09:48:32 -08:00
2007-03-27 09:05:15 -07:00
2007-02-14 08:09:54 -08:00
2007-05-02 18:57:59 -07:00
2007-04-30 08:58:21 -07:00
2007-04-30 12:38:01 +10:00
2007-05-06 13:20:10 -07:00
2007-05-05 22:03:51 +02:00
2007-05-02 19:02:35 -07:00
2007-05-05 13:30:44 -07:00
2007-05-04 18:16:12 -07:00
2007-05-02 19:02:35 -07:00
2007-05-03 10:52:32 +03:00
2007-02-15 21:37:29 +00:00
2007-05-04 17:59:07 -07:00
2007-04-30 09:08:17 +02:00
2007-05-04 18:04:29 -07:00
2007-05-05 13:30:44 -07:00
2007-04-02 10:06:08 -07:00
2007-05-04 21:44:34 -07:00
2007-05-06 13:20:10 -07:00
2007-05-07 12:12:51 -07:00
2007-05-06 13:21:57 -07:00
2007-03-28 13:58:02 -07:00
2007-05-04 19:36:58 -07:00
2007-04-23 23:33:17 -07:00
2007-05-04 18:04:48 -07:00
2007-05-07 12:12:50 -07:00
2007-04-27 10:57:30 -07:00
2007-05-04 17:59:09 -07:00
2007-02-14 08:09:54 -08:00
2007-04-02 10:06:09 -07:00
2007-05-05 13:30:44 -07:00
2007-05-02 19:02:35 -07:00
2007-05-06 13:21:57 -07:00
2007-05-07 12:12:51 -07:00
2007-04-17 16:36:27 -07:00
2007-04-04 21:12:47 -07:00
2007-02-14 08:09:54 -08:00
2007-05-06 13:20:10 -07:00
2007-05-06 13:21:57 -07:00
2007-02-12 09:48:28 -08:00
2007-05-04 17:59:08 -07:00
2007-05-01 23:26:31 +02:00