Skip to contentSkip to conversation

+ video-mmp-using-plain-integer-as-null-pointer.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Dec 16, 2013 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

Subject: + video-mmp-using-plain-integer-as-null-pointer.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 16 Dec 2013 11:55:52 -0800

The patch titled
Subject: drivers/video/mmp/core.c: using plain integer as NULL pointer
has been added to the -mm tree. Its filename is
video-mmp-using-plain-integer-as-null-pointer.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/video-mmp-using-plain-integer-as-null-pointer.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/video-mmp-using-plain-integer-as-null-pointer.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Dan Carpenter <[email protected]>
Subject: drivers/video/mmp/core.c: using plain integer as NULL pointer

Sparse complains here:

	drivers/video/mmp/core.c:33:16:
		warning: Using plain integer as NULL pointer
Cc Jean-Christophe Plagniol-Villard <[email protected]>
Cc Tomi Valkeinen <[email protected]>
Cc Haojian Zhuang <[email protected]>
Cc Andrei Epure <[email protected]>
Cc Lisa Du <[email protected]>
Cc Zhou Zhu <[email protected]>

---

 drivers/video/mmp/core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/mmp/core.c renamed from drivers/video/mmp/core.c~video-mmp-using-plain-integer-as-null-pointer +1 -1
diff -puN drivers/video/mmp/core.c~video-mmp-using-plain-integer-as-null-pointer drivers/video/mmp/core.c
@@ -30,7 +30,7 @@ static struct mmp_overlay *path_get_over
 {
 	if (path && overlay_id < path->overlay_num)
 		return &path->overlays[overlay_id];
-	return 0;
+	return NULL;
 }
 
 static int path_check_status(struct mmp_path *path)

_

Patches currently in -mm which might be from [email protected] are

origin.patch dma-debug-enhance-dma_debug_device_change-to-check-for-mapping-errors-fix.patch video-mmp-delete-a-stray-mutex_unlock.patch video-mmp-using-plain-integer-as-null-pointer.patch ocfs2-use-the-new-dlm-operation-callbacks-while-requesting-new-lockspace.patch drivers-scsi-megaraid-megaraid_mmc-missing-bounds-check-in-mimd_to_kioc.patch drivers-block-paride-pgc-underflow-bug-in-pg_write.patch fs-compat_ioctlc-fix-an-underflow-issue-harmless.patch drivers-mailbox-omap-make-mbox-irq-signed-for-error-handling.patch checkpatch-warn-only-on-space-before-semicolon-at-end-of-line.patch linux-next.patch