[PATCH] tipar fixes
authorAndrew Morton <akpm@osdl.org>
Sun, 12 Feb 2006 01:56:05 +0000 (17:56 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 12 Feb 2006 05:41:13 +0000 (21:41 -0800)
commit1d30883942cfe8a1e3f88f8b7f4c292aeba3db5a
treed53b73bb121b6b477ce64a6705d1a70f16581cb7
parentef1bea9e2a5a72d2c3362522e0a09099406732ff
[PATCH] tipar fixes

- tipar_open(): fix unsigned comparison

- tipar_open(): don't permit NULL pardevice (probably unneeded given the
  above fix).

- tipar_init_module(): handle the situation where parport_register_driver()
  failed to register any devices (parport_register_driver() drops the ->attach
  return value on the floor).

  This probably makes fixes #1 and #2 unneeded.

- tipar_init_module(): fix various error-path resource leaks.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/tipar.c