gdb/ChangeLog:
	* linux-nat.c (linux_nat_close): Don't pass NULL for "this".
	Pass NULL instead of 0 for context pointer.
+2014-08-25  Doug Evans  <dje@google.com>
+
+       * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
+       Pass NULL instead of 0 for context pointer.
+
 2014-08-25  Yao Qi  <yao@codesourcery.com>
 
        * dwarf2read.c: Fix grammatical error.
 
 linux_nat_close (struct target_ops *self)
 {
   /* Unregister from the event loop.  */
-  if (linux_nat_is_async_p (NULL))
-    linux_nat_async (NULL, NULL, 0);
+  if (linux_nat_is_async_p (self))
+    linux_nat_async (self, NULL, NULL);
 
   if (linux_ops->to_close)
     linux_ops->to_close (linux_ops);