linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: bug or typo in scsi_debug.c
       [not found] <B3E98EAC5926D5498DDD341AE4B7D21CD5289C@TUS1XCHCLUPIN06.enterprise.veritas.com>
@ 2007-03-06 14:22 ` Douglas Gilbert
  0 siblings, 0 replies; only message in thread
From: Douglas Gilbert @ 2007-03-06 14:22 UTC (permalink / raw)
  To: Mark Harvey; +Cc: linux-scsi

Mark Harvey wrote:
> Looking thru this driver, I saw what looks to be a bug/typo if an error
> occurs when
> calling driver_register() from scsi_debug_init()
> 
> Cheers
> Mark
> 
> --- scsi_debug-orig.c   2007-03-03 19:38:23.000000000 +1100
> +++ scsi_debug.c        2007-03-03 19:39:51.000000000 +1100
> @@ -2841,7 +2841,7 @@
>         if (ret < 0) {
>                 printk(KERN_WARNING "scsi_debug: driver_register error:
> %d\n",
>                         ret);
> -               goto bus_unreg;
> +               goto driver_unreg;
>         }
>         ret = do_create_driverfs_files();
>         if (ret < 0) {
> @@ -2873,6 +2873,7 @@
> 
>  del_files:
>         do_remove_driverfs_files();
> +driver_unreg:
>         driver_unregister(&sdebug_driverfs_driver);
>  bus_unreg:
>         bus_unregister(&pseudo_lld_bus);


Mark,
Um, I know my name is on that driver (with Eric's)
but I didn't write the code in that function.

I don't understand why your patch wants to call
driver_unregister() after driver_register() has failed.

Doug Gilbert

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-03-06 14:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <B3E98EAC5926D5498DDD341AE4B7D21CD5289C@TUS1XCHCLUPIN06.enterprise.veritas.com>
2007-03-06 14:22 ` bug or typo in scsi_debug.c Douglas Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).