kernel panic after sema_init(&sem,-1) why?

From: Sujeet Kumar (sujeet.kumar_at_patni.com)
Date: 01/07/05

  • Next message: Andrew Morton: "Re: SCSI aic7xxx driver: Initialization Failure over a kdump reboot"
    To: <linux-kernel@vger.kernel.org>
    Date:	Fri, 7 Jan 2005 09:19:43 +0530
    
    
    

    Hi !
    In our sample driver ,
    The system gives panic, if I initialise the semaphore to -1
    [sema_init(&sem,-1)] and
    then try to acquire it by calling down() .
    It gives a kernel panic . what could be the reason for this.
    Where exactly is panic() called?

    could not figure out easily from code.
    Thanks
    sujeet

    http://www.patni.com
    World-Wide Partnerships. World-Class Solutions.
    _____________________________________________________________________

    This e-mail message may contain proprietary, confidential or legally
    privileged information for the sole use of the person or entity to
    whom this message was originally addressed. Any review, e-transmission
    dissemination or other use of or taking of any action in reliance upon
    this information by persons or entities other than the intended
    recipient is prohibited. If you have received this e-mail in error
    kindly delete this e-mail from your records. If it appears that this
    mail has been forwarded to you without proper authority, please notify
    us immediately at netadmin@patni.com and delete this mail.
    _____________________________________________________________________

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


  • Next message: Andrew Morton: "Re: SCSI aic7xxx driver: Initialization Failure over a kdump reboot"

    Relevant Pages