1. 15 11月, 2007 7 次提交
    • F
      [ISDN] sc: Really, really fix warning · 66ba8862
      Frank Lichtenheld 提交于
        CC [M]  drivers/isdn/sc/shmem.o
      drivers/isdn/sc/shmem.c: In function ‘memcpy_toshmem’:
      drivers/isdn/sc/shmem.c:53: warning: passing argument 1 of ‘memcpy_toio’ makes pointer from integer without a cast
      
      Commit 9317d431:
      
      	ISDN/sc: fix longstanding warning
      
      claimed to fix it, but it didn't.
      
      [ Changed the "void *" to be "void __iomem *" -DaveM ]
      Signed-off-by: NFrank Lichtenheld <frank@lichtenheld.de>
      Acked-by:Karsten Keil <kkeilæsuse.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      66ba8862
    • F
      [ISDN] sc: Fix sndpkt to have the correct number of arguments · 186fd777
      Frank Lichtenheld 提交于
      isdn_if.writebuf_skb has an additional ack flag argument which
      was missing from sndpkt leading to the following warning:
        CC [M]  drivers/isdn/sc/init.o
      drivers/isdn/sc/init.c: In function ‘sc_init’:
      drivers/isdn/sc/init.c:281: warning: assignment from incompatible pointer type
      
      Note that this doesn't actually do anything with the flag, it
      just fixes the warning (and probably accessing the last argument).
      Signed-off-by: NFrank Lichtenheld <frank@lichtenheld.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      186fd777
    • I
      [TCP] FRTO: Clear frto_highmark only after process_frto that uses it · e1cd8f78
      Ilpo Jrvinen 提交于
      I broke this in commit 3de96471:
      
      	[TCP]: Wrap-safed reordering detection FRTO check
      
      tcp_process_frto should always see a valid frto_highmark. An invalid
      frto_highmark (zero) is very likely what ultimately caused a seqno
      compare in tcp_frto_enter_loss to do the wrong leading to the LOST-bit
      leak.
      
      Having LOST-bits integry ensured like done after commit
      23aeeec3:
      
      	[TCP] FRTO: Plug potential LOST-bit leak
      
      won't hurt. It may still be useful in some other, possibly legimate,
      scenario.
      
      Reported by Chazarain Guillaume <guichaz@yahoo.fr>.
      Signed-off-by: NIlpo Jrvinen <ilpo.jarvinen@helsinki.fi>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e1cd8f78
    • P
      [NET]: Remove notifier block from chain when register_netdevice_notifier fails · c67625a1
      Pavel Emelyanov 提交于
      Commit fcc5a03a:
      
      	[NET]: Allow netdev REGISTER/CHANGENAME events to fail
      
      makes the register_netdevice_notifier() handle the error from the
      NETDEV_REGISTER event, sent to the registering block.
      
      The bad news is that in this case the notifier block is 
      not removed from the list, but the error is returned to the 
      caller. In case the caller is in module init function and 
      handles this error this can abort the module loading. The
      notifier block will be then removed from the kernel, but 
      will be left in the list. Oops :(
      
      I think that the notifier block should be removed from the
      chain in case of error, regardless whether this error is 
      handled by the caller or not. In the worst case (the error 
      is _not_ handled) module will not receive the events any 
      longer.
      Signed-off-by: NPavel Emelyanov <xemul@openvz.org>
      Acked-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c67625a1
    • J
      [FS_ENET]: Fix module build. · 8a856397
      Jochen Friedrich 提交于
      If fs_enet is build as module, on PPC_CPM_NEW_BINDING platforms
      mii-fec/mii-bitbang should be build as module, as well. On other
      platforms, mii-fec/mii-bitbang must be included into the main module.
      Otherwise some symbols remain undefined. Additionally, fs_enet uses
      libphy, so add a select PHYLIB.
      
        Building modules, stage 2.
        MODPOST 5 modules
      ERROR: "fs_scc_ops" [drivers/net/fs_enet/fs_enet.ko] undefined!
      make[1]: *** [__modpost] Error 1
      make: *** [modules] Error 2
      Signed-off-by: NJochen Friedrich <jochen@scram.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8a856397
    • I
      [TCP]: Make sure write_queue_from does not begin with NULL ptr · 96a2d41a
      Ilpo Jrvinen 提交于
      NULL ptr can be returned from tcp_write_queue_head to cached_skb
      and then assigned to skb if packets_out was zero. Without this,
      system is vulnerable to a carefully crafted ACKs which obviously
      is remotely triggerable.
      
      Besides, there's very little that needs to be done in sacktag
      if there weren't any packets outstanding, just skipping the rest
      doesn't hurt.
      Signed-off-by: NIlpo Jrvinen <ilpo.jarvinen@helsinki.fi>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      96a2d41a
    • H
      [TCP]: Fix size calculation in sk_stream_alloc_pskb · fb93134d
      Herbert Xu 提交于
      We round up the header size in sk_stream_alloc_pskb so that
      TSO packets get zero tail room.  Unfortunately this rounding
      up is not coordinated with the select_size() function used by
      TCP to calculate the second parameter of sk_stream_alloc_pskb.
      
      As a result, we may allocate more than a page of data in the
      non-TSO case when exactly one page is desired.
      
      In fact, rounding up the head room is detrimental in the non-TSO
      case because it makes memory that would otherwise be available to
      the payload head room.  TSO doesn't need this either, all it wants
      is the guarantee that there is no tail room.
      
      So this patch fixes this by adjusting the skb_reserve call so that
      exactly the requested amount (which all callers have calculated in
      a precise way) is made available as tail room.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fb93134d
  2. 14 11月, 2007 16 次提交
  3. 13 11月, 2007 17 次提交