Rob,

 Please drop this patch as it was already sent a week ago, accidentally
send same patch again along with my recent other patches.

 Thanks
 Vasu

On Fri, 2010-04-23 at 13:17 -0700, Vasu Dev wrote:
> fcoe_create exits using out_nodev label when module is not
> yet LIVE but this exit path unlocks the rtnl_lock though
> rtnl lock was not held in this case.
> 
> So this patch replaces out_nodev with out_nomod to exit
> w/o unlocking rtnl_lock.
> 
> Signed-off-by: Vasu Dev <[email protected]>
> ---
> 
>  drivers/scsi/fcoe/fcoe.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
> index aba839e..7022a16 100644
> --- a/drivers/scsi/fcoe/fcoe.c
> +++ b/drivers/scsi/fcoe/fcoe.c
> @@ -2056,7 +2056,7 @@ static int fcoe_create(const char *buffer, struct 
> kernel_param *kp)
>        */
>       if (THIS_MODULE->state != MODULE_STATE_LIVE) {
>               rc = -ENODEV;
> -             goto out_nodev;
> +             goto out_nomod;
>       }
>  #endif
>  
> 
> _______________________________________________
> devel mailing list
> [email protected]
> http://www.open-fcoe.org/mailman/listinfo/devel

_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel

Reply via email to