swap: Fix silly bug
authorAlan Cox <alan@etchedpixels.co.uk>
Sun, 2 Nov 2014 18:37:12 +0000 (18:37 +0000)
committerAlan Cox <alan@etchedpixels.co.uk>
Sun, 2 Nov 2014 18:37:12 +0000 (18:37 +0000)
Kernel/swap.c

index cfb04f4..dfc345c 100644 (file)
@@ -81,7 +81,7 @@ int swapout(ptptr p)
                /* Write to disk if the platform asks us */
                if (ptr)
                        swapwrite(SWAPDEV, blk, UDATA_SWAPSIZE,
-                                 (char *) p);
+                                 ptr);
 #endif
                /* Write the app (and possibly the uarea etc..) to disk */
                swapwrite(SWAPDEV, blk + UDATA_BLOCKS, SWAPTOP - SWAPBASE,