1. 12 May, 2008 2 commits
  2. 09 May, 2008 2 commits
  3. 08 May, 2008 9 commits
  4. 06 May, 2008 23 commits
  5. 05 May, 2008 4 commits
    • Chris Wright's avatar
      dccp: return -EINVAL on invalid feature length · 19443178
      Chris Wright authored
      dccp_feat_change() validates length and on error is returning 1.
      This happens to work since call chain is checking for 0 == success,
      but this is returned to userspace, so make it a real error value.
      Signed-off-by: default avatarChris Wright <chrisw@sous-sol.org>
      Acked-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      19443178
    • Ingo Molnar's avatar
      irda: fix !PNP support for drivers/net/irda/smsc-ircc2.c · 7a1aa309
      Ingo Molnar authored
      x86.git testing found this build bug on v2.6.26-rc1:
      
        ERROR: "pnp_get_resource" [drivers/net/irda/smsc-ircc2.ko] undefined!
        make[1]: *** [__modpost] Error 1
        make: *** [modules] Error 2
      
      the driver did not anticipate the case of !CONFIG_PNP which is rare but 
      still possible. Instead of restricting the driver to PNP-only in the 
      Kconfig space, add the (trivial) dummy struct pnp_driver - this is that 
      other drivers use in the !PNP case too.
      
      The driver itself can in theory be initialized on !PNP too in certain 
      cases, via smsc_ircc_legacy_probe().
      
      Patch only minimally build tested, i dont have this hardware.
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      7a1aa309
    • Ingo Molnar's avatar
      irda: fix !PNP support in drivers/net/irda/nsc-ircc.c · c17f888f
      Ingo Molnar authored
      x86.git testing found the following build failure in latest -git:
      
       drivers/built-in.o: In function `nsc_ircc_pnp_probe':
       nsc-ircc.c:(.text+0xdf1b6): undefined reference to `pnp_get_resource'
       nsc-ircc.c:(.text+0xdf1d4): undefined reference to `pnp_get_resource'
       nsc-ircc.c:(.text+0xdf1ee): undefined reference to `pnp_get_resource'
       nsc-ircc.c:(.text+0xdf237): undefined reference to `pnp_get_resource'
       nsc-ircc.c:(.text+0xdf24c): undefined reference to `pnp_get_resource'
       drivers/built-in.o:nsc-ircc.c:(.text+0xdf266): more undefined references to `pnp_get_resource' follow
       make: *** [.tmp_vmlinux1] Error 1
      
      triggered via this config:
      
        http://redhat.com/~mingo/misc/config-Sat_May__3_20_53_13_CEST_2008.bad
      
      while generally most users will have PNP enabled, drivers can support
      non-PNP build mode too - and most drivers implement it. That is typically
      done by providing a dummy pnp_driver structure that will not probe anything.
      
      The fallback routines in the driver will handle this dumber mode of
      operation too.
      
      This patch implements that. I have not tested whether this actually
      works on real hardware so take care. It does resolve the build bug.
      
      [ Another solution that is used by a few drivers is to exclude the driver
        in the Kconfig if PNP is disabled, via "depends on PNP", but this would
        limit the availability of the driver needlessly. ]
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c17f888f
    • Jamal Hadi Salim's avatar
      net_cls_act: Make act_simple use of netlink policy. · fa1b1cff
      Jamal Hadi Salim authored
      Convert to netlink helpers by using netlink policy validation.
      As a side effect fixes a leak.
      Signed-off-by: default avatarJamal Hadi Salim <hadi@cyberus.ca>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      fa1b1cff