Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jun 2010 20:01:48 GMT
From:      Rafal Jaworowski <raj@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 180162 for review
Message-ID:  <201006232001.o5NK1moY063395@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@180162?ac=10

Change 180162 by raj@raj_nand on 2010/06/23 20:01:21

	Unlock properly in a failing case.
	
	Submitted by:	Yohanes Nugroho

Affected files ...

.. //depot/projects/nand2/sys/dev/nand/nand_cdev.c#2 edit

Differences ...

==== //depot/projects/nand2/sys/dev/nand/nand_cdev.c#2 (text+ko) ====

@@ -210,6 +210,7 @@
 	if (off != 0 || (len % cg->page_size) != 0) {
 		printf("Not aligned write start [0x%08x] size [0x%08x]\n",
 		    off, len);
+		nandbus_lock(nandbus);
 		return (EINVAL);
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006232001.o5NK1moY063395>