Skip to contentSkip to conversation

One more staging fix for 3.1

PATCH New Greg KH 1 participant 2 messages Sep 20, 2011 Staging

lore
Share & tools
lore

Greg KH

author
#0 lore raw

cover One more staging fix for 3.1

Here's one more staging bugfix that has been reported a lot that I missed sending you in my last short series of patches.

After this, my patch queue is empty for 3.1, all looks good from my end.

thanks,

greg k-h

author
#1 lore raw

PATCH 1/1 staging: zcache: fix cleancache crash

From: Seth Jennings <[email protected]>

After commit, c5f5c4db, cleancache crashes on the first successful get. This was caused by a remaining virt_to_page() call in zcache_pampd_get_data_and_free() that only gets run in the cleancache path.

The patch converts the virt_to_page() to struct page casting like was done for other instances in c5f5c4db.

---
 drivers/staging/zcache/zcache-main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/zcache/zcache-main.c +1 -1
@@ -1242,7 +1242,7 @@ static int zcache_pampd_get_data_and_fre
 	int ret = 0;
 
 	BUG_ON(!is_ephemeral(pool));
-	zbud_decompress(virt_to_page(data), pampd);
+	zbud_decompress((struct page *)(data), pampd);
 	zbud_free_and_delist((struct zbud_hdr *)pampd);
 	atomic_dec(&zcache_curr_eph_pampd_count);
 	return ret;