Thread (3 messages) flat view 3 messages, 2 authors, 2008-02-01

Re: [PATCH] [POWERPC] Xilinx: hwicap driver

From: Nathan Lynch <hidden>
Date: 2008-02-01 05:56:44

Possibly related (same subject, not in this thread)

Stephen Neuendorffer wrote:
+static ssize_t
+hwicap_read(struct file *file, char *buf, size_t count, loff_t *ppos)
+{
+	struct hwicap_drvdata *drvdata = file->private_data;
+	ssize_t bytes_to_read = 0;
+	u32 *kbuf;
+	u32 words;
+	u32 bytes_remaining;
+	int status;
+
+        spin_lock(&hwicap_spinlock);
+	if (drvdata->is_accessing)
+		return -EBUSY;
Need to unlock before returning (several places in this patch).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help