diff mbox

hid: picolcd: testing the wrong variable

Message ID 20100806062848.GL9031@bicker (mailing list archive)
State Accepted
Commit a106025015c8d24af6518aba3ac19c4dc9098b7c
Headers show

Commit Message

Dan Carpenter Aug. 6, 2010, 6:28 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/hid/hid-picolcd.c b/drivers/hid/hid-picolcd.c
index 346f0e3..c0bdeba 100644
--- a/drivers/hid/hid-picolcd.c
+++ b/drivers/hid/hid-picolcd.c
@@ -547,7 +547,7 @@  static void picolcd_fb_destroy(struct fb_info *info)
 	ref_cnt--;
 	mutex_lock(&info->lock);
 	(*ref_cnt)--;
-	may_release = !ref_cnt;
+	may_release = !*ref_cnt;
 	mutex_unlock(&info->lock);
 	if (may_release) {
 		framebuffer_release(info);