netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [sparse] add annotation to sock_filter.h
@ 2004-06-17 17:26 Stephen Hemminger
  2004-06-17 18:00 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2004-06-17 17:26 UTC (permalink / raw)
  To: David S. Miller; +Cc: netdev

Since sock_fprog is argument in ioctl, the filter pointer needs to be annotated.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>

diff -Nru a/include/linux/filter.h b/include/linux/filter.h
--- a/include/linux/filter.h	2004-06-16 15:26:32 -07:00
+++ b/include/linux/filter.h	2004-06-16 15:26:32 -07:00
@@ -5,6 +5,8 @@
 #ifndef __LINUX_FILTER_H__
 #define __LINUX_FILTER_H__
 
+#include <linux/compiler.h>
+
 /*
  * Current version of the filter code architecture.
  */
@@ -27,7 +29,7 @@
 struct sock_fprog	/* Required for SO_ATTACH_FILTER. */
 {
 	unsigned short		len;	/* Number of filter blocks */
-	struct sock_filter	*filter;
+	struct sock_filter __user *filter;
 };
 
 #ifdef __KERNEL__

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] [sparse] add annotation to sock_filter.h
  2004-06-17 17:26 [PATCH] [sparse] add annotation to sock_filter.h Stephen Hemminger
@ 2004-06-17 18:00 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2004-06-17 18:00 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

On Thu, 17 Jun 2004 10:26:22 -0700
Stephen Hemminger <shemminger@osdl.org> wrote:

> Since sock_fprog is argument in ioctl, the filter pointer needs to be annotated.
> 
> Signed-off-by: Stephen Hemminger <shemminger@osdl.org>

Applied, thanks Stephen.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-17 18:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-17 17:26 [PATCH] [sparse] add annotation to sock_filter.h Stephen Hemminger
2004-06-17 18:00 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).