31 Mar, 2011

1 commit


15 Mar, 2011

1 commit

  • This patch was generated by the following semantic patch:
    //
    @@ expression E; @@
    - if (E != NULL) { kfree(E); }
    + kfree(E);

    @@ expression E; @@
    - if (E != NULL) { kfree(E); E = NULL; }
    + kfree(E);
    + E = NULL;
    //

    Signed-off-by: Ilia Mirkin
    Signed-off-by: Greg Kroah-Hartman

    Ilia Mirkin
     

10 Mar, 2011

2 commits


01 Mar, 2011

1 commit


19 Feb, 2011

4 commits


05 Feb, 2011

1 commit

  • bcm driver copies a buffer length provided by userpace without checking it.

    RxCntrlMsgBitMask is of type unsigned long so only makes sense to copy
    sizeof(unsigned long) bytes.

    Also, copy_from_user() returns the number of bytes that could not be copied.
    The driver is returning that value as error code instead of -EFAULT.

    This patch solves both issues.

    Signed-off-by: Javier Martinez Canillas
    Cc: Stephen Hemminger
    Signed-off-by: Greg Kroah-Hartman

    Javier Martinez Canillas
     

18 Jan, 2011

1 commit

  • While building latest Linus git, I hit the following:

    CC [M] drivers/staging/bcm/Qos.o
    drivers/staging/bcm/Qos.c: In function ‘PruneQueue’:
    drivers/staging/bcm/Qos.c:367: error: ‘struct netdev_queue’ has no member named ‘tx_dropped’
    drivers/staging/bcm/Qos.c: In function ‘flush_all_queues’:
    drivers/staging/bcm/Qos.c:416: error: ‘struct netdev_queue’ has no member named ‘tx_dropped’
    make[5]: *** [drivers/staging/bcm/Qos.o] Error 1
    make[4]: *** [drivers/staging/bcm] Error 2
    make[3]: *** [drivers/staging] Error 2

    As well as:

    CC [M] drivers/staging/bcm/Transmit.o
    drivers/staging/bcm/Transmit.c: In function ‘SetupNextSend’:
    drivers/staging/bcm/Transmit.c:163: error: ‘struct netdev_queue’ has no member named ‘tx_bytes’
    drivers/staging/bcm/Transmit.c:164: error: ‘struct netdev_queue’ has no member named ‘tx_packets’
    make[2]: *** [drivers/staging/bcm/Transmit.o] Error 1

    tx_dropped/tx_bytes_tx_packets were removed in commit 1ac9ad13. This patch
    converts bcm to use net_device_stats instead of netdev_queue.

    Acked-by: Stephen Hemminger
    Acked-by: Eric Dumazet
    Signed-off-by: Andres Salomon
    Signed-off-by: Linus Torvalds

    Andres Salomon
     

11 Jan, 2011

1 commit

  • * 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6: (510 commits)
    staging: speakup: fix failure handling
    staging: usbip: remove double giveback of URB
    Staging: batman-adv: Remove batman-adv from staging
    Staging: hv: Use only one txf buffer per channel and kmalloc/GFP_KERNEL on initialize
    staging: hv: remove unneeded osd_schedule_callback
    staging: hv: convert channel_mgmt.c to not call osd_schedule_callback
    staging: hv: convert vmbus_on_msg_dpc to not call osd_schedule_callback
    staging: brcm80211: Fix WL_ logging macros
    Staging: IIO: DDS: AD9833 / AD9834 driver
    Staging: IIO: dds.h convenience macros
    Staging: IIO: Direct digital synthesis abi documentation
    staging: brcm80211: Convert ETHER_TYPE_802_1X to ETH_P_PAE
    staging: brcm80211: Remove unused ETHER_TYPE_ #defines
    staging: brcm80211: Remove ETHER_HDR_LEN, use ETH_HLEN
    staging: brcm80211: Convert ETHER_ADDR_LEN to ETH_ALEN
    staging: brcm80211: Convert ETHER_IS to is__ether_addr
    staging: brcm80211: Remove unused ether_ #defines and struct
    staging: brcm80211: Convert ETHER_IS_MULTI to is_multicast_ether_addr
    staging: brcm80211: Remove unused #defines ETHER__LOCALADDR
    Staging: comedi: Fix checkpatch.pl issues in file s526.c
    ...

    Fix up trivial conflict in drivers/video/udlfb.c

    Linus Torvalds
     

17 Dec, 2010

1 commit

  • * usb-next: (132 commits)
    USB: uas: Use GFP_NOIO instead of GFP_KERNEL in I/O submission path
    USB: uas: Ensure we only bind to a UAS interface
    USB: uas: Rename sense pipe and sense urb to status pipe and status urb
    USB: uas: Use kzalloc instead of kmalloc
    USB: uas: Fix up the Sense IU
    usb: musb: core: kill unneeded #include's
    DA8xx: assign name to MUSB IRQ resource
    usb: gadget: g_ncm added
    usb: gadget: f_ncm.c added
    usb: gadget: u_ether: prepare for NCM
    usb: pch_udc: Fix setup transfers with data out
    usb: pch_udc: Fix compile error, warnings and checkpatch warnings
    usb: add ab8500 usb transceiver driver
    USB: gadget: Implement runtime PM for MSM bus glue driver
    USB: gadget: Implement runtime PM for ci13xxx gadget
    USB: gadget: Add USB controller driver for MSM SoC
    USB: gadget: Introduce ci13xxx_udc_driver struct
    USB: gadget: Initialize ci13xxx gadget device's coherent DMA mask
    USB: gadget: Fix "scheduling while atomic" bugs in ci13xxx_udc
    USB: gadget: Separate out PCI bus code from ci13xxx_udc
    ...

    Greg Kroah-Hartman
     

07 Dec, 2010

7 commits


18 Nov, 2010

1 commit


17 Nov, 2010

4 commits


11 Nov, 2010

3 commits


10 Nov, 2010

1 commit

  • This fixes some places that dereference user pointers directly instead
    of using get_user().

    Please especially check my changes to IOCTL_BCM_GET_CURRENT_STATUS. The
    original code modified the struct which "arg" was pointing to. I think
    this was a bug in the original code and that we only wanted to write to
    the OutputBuffer. Also with the original code you could read as much
    memory as you wanted so I had to put a cap on OutputLength. The only
    value of OutputLength that makes sense is sizeof(LINK_STATE) so now if
    OutputLength is not sizeof(LINK_STATE) it returns -EINVAL.

    Signed-off-by: Dan Carpenter
    Signed-off-by: Greg Kroah-Hartman

    Dan Carpenter
     

02 Nov, 2010

11 commits