Skip to contentSkip to conversation

aio: dprintks in aio_read_evt were referencing aio_ring after kunmap_atomic

PATCH New Zhao Hongjiang 1 participant 1 message Apr 25, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 aio: dprintks in aio_read_evt were referencing aio_ring after kunmap_atomic

---

linux-next use pr_debug instead of dprintk, and fix the issue.

---
 fs/aio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/aio.c +1 -1
index 3f941f2..1dc8786 100644
@@ -1029,9 +1029,9 @@ static int aio_read_evt(struct kioctx *ioctx, struct io_event *ent)
 	spin_unlock(&info->ring_lock);
 
 out:
-	kunmap_atomic(ring);
 	dprintk("leaving aio_read_evt: %d  h%lu t%lu\n", ret,
 		 (unsigned long)ring->head, (unsigned long)ring->tail);
+	kunmap_atomic(ring);
 	return ret;
 }
 
Signature · 7 lines
1.7.1

--
To unsubscribe, send a message with 'unsubscribe linux-aio' in
the body to [email protected].  For more info on Linux AIO,
see: http://www.kvack.org/aio/
Don't email: <a href=mailto:"[email protected]">[email protected]</a>