]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitd6820d1b3218cdfb7de82206f4cf3b9611bb6648
treed53b73bb121b6b477ce64a6705d1a70f16581cb7
parente36417d12e4377ae304abf6df2329510f7e3b74d
[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