[patch] 2.3.99-pre3: ppc/8xx_io/uart.c

From: Tim Waugh (tim@cyberelk.demon.co.uk)
Date: Mon Mar 27 2000 - 13:43:38 EST


I haven't tested this, but I think it's right. The MOD_INC_USE_COUNT a
couple of lines above is done unconditionally, but we don't call
MOD_DEC_USE_COUNT if we fail.

Tim.
*/

--- linux/arch/ppc/8xx_io/uart.c~ Sat Oct 9 23:20:22 1999
+++ linux/arch/ppc/8xx_io/uart.c Mon Mar 27 19:41:57 2000
@@ -1937,6 +1937,7 @@ static int rs_8xx_open(struct tty_struct
                 printk("rs_open returning after block_til_ready with %d\n",
                        retval);
 #endif
+ MOD_DEC_USE_COUNT;
                 return retval;
         }
 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:20 EST