[PATCH] uml: move outside spinlock call not needing it
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Tue, 11 Apr 2006 05:53:36 +0000 (22:53 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Apr 2006 13:18:36 +0000 (06:18 -0700)
Move a call to kfree on a local variable out of a spinlock - there's no need
to have it in.  Done on a just merged patch.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/os-Linux/sigio.c

index 9ba9429471468ce3f8b338b2c337db3f3bcd26aa..00e9388e947af4fa59442a3fdad627a82b7384e2 100644 (file)
@@ -304,8 +304,8 @@ out_clear_poll:
                                           .size        = 0,
                                           .used        = 0 });
 out_free:
-       kfree(p);
        sigio_unlock();
+       kfree(p);
 out_close2:
        close(l_sigio_private[0]);
        close(l_sigio_private[1]);