Ian Kent e60215
autofs-5.0.7 - fix inconsistent use of cache lock in handle_packet_missing_direct()
Ian Kent e60215
Ian Kent e60215
From: Ian Kent <raven@themaw.net>
Ian Kent e60215
Ian Kent e60215
All references here except this one refer to the same variable so change the odd
Ian Kent e60215
one out for consistency.
Ian Kent e60215
---
Ian Kent e60215
 daemon/direct.c |    2 +-
Ian Kent e60215
 1 file changed, 1 insertion(+), 1 deletion(-)
Ian Kent e60215
Ian Kent e60215
diff --git a/daemon/direct.c b/daemon/direct.c
Ian Kent e60215
index 228a666..399ad0a 100644
Ian Kent e60215
--- a/daemon/direct.c
Ian Kent e60215
+++ b/daemon/direct.c
Ian Kent e60215
@@ -1392,7 +1392,7 @@ int handle_packet_missing_direct(struct autofs_point *ap, autofs_packet_missing_
Ian Kent e60215
 		ops->send_fail(ap->logopt,
Ian Kent e60215
 			       ioctlfd, pkt->wait_queue_token, -ENOENT);
Ian Kent e60215
 		ops->close(ap->logopt, ioctlfd);
Ian Kent e60215
-		cache_unlock(me->mc);
Ian Kent e60215
+		cache_unlock(mc);
Ian Kent e60215
 		master_source_unlock(ap->entry);
Ian Kent e60215
 		master_mutex_unlock();
Ian Kent e60215
 		pthread_setcancelstate(state, NULL);