13 Jan, 2012

1 commit


27 Nov, 2011

2 commits


03 Aug, 2011

1 commit

  • x86_64 allmodconfig:

    In file included from arch/x86/include/asm/uaccess.h:572,
    from include/linux/uaccess.h:5,
    from drivers/staging/speakup/devsynth.c:4:
    In function 'copy_from_user',
    inlined from 'speakup_file_write' at drivers/staging/speakup/devsynth.c:28:
    arch/x86/include/asm/uaccess_64.h:64: error: call to 'copy_from_user_overflow' declared with attribute error: copy_from_user() buffer size is not provably correct

    I'm not sure what was unprovable about it, but size_t is the correct type
    anyway.

    Also replace needless min_t() with min()

    Cc: William Hubbs
    Cc: Arjan van de Ven
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Andrew Morton
     

06 Jul, 2011

1 commit


29 Jun, 2011

1 commit

  • This patch replaces the code for getting an unsigned long from a
    userspace buffer by a simple call to kstroul_from_user.
    This makes it easier to read and less error prone.

    Kernel Version: staging of 20110606

    Signed-off-by: Peter Huewe
    Signed-off-by: Greg Kroah-Hartman

    Peter Huewe
     

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
     

24 Feb, 2011

1 commit


05 Feb, 2011

1 commit


03 Feb, 2011

1 commit


21 Jan, 2011

2 commits

  • We still leaked many resources when Speakup failed to initialize.
    Examples of leaked resources include:
    /dev/synth, keyboard or VT notifiers, and heap-allocated st_spk_t
    structs.
    This is fixed.

    * We now use PTR_ERR to detect kthread_create failure
    (thank you Dan Carpenter).

    * The loop which frees members of the speakup_console array now iterates
    over the whole array, not stopping at the first NULL value. Fixes
    a possible memory leak. Safe because kfree(NULL) is a no-op.

    * The order of some initializations was changed. The safe ones, which
    will never fail, are performed first.

    Signed-off-by: Christopher Brannon
    Acked-by: Dan Carpenter
    Signed-off-by: Greg Kroah-Hartman

    Christopher Brannon
     
  • Fix test: the branch is always taken.

    Signed-off-by: Roel Kluin
    Cc: Andrew Morton
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    roel kluin
     

11 Jan, 2011

2 commits

  • * '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
     
  • fix the failure handling in kobjects and the main function so that we
    release the virtual keyboard if we exit due to another failure.

    Signed-off-by: William Hubbs
    Signed-off-by: Greg Kroah-Hartman

    William Hubbs
     

17 Dec, 2010

2 commits

  • The whole function can be expressed as a simple this_cpu_read() operation.
    The function overhead is now likely multiple times that of the single
    instruction that is executed in it.

    Sedat: fixed compile failure caused by an extra ')'.

    Cc: William Hubbs
    Cc: Sedat Dilek
    Acked-by: H. Peter Anvin
    Signed-off-by: Christoph Lameter
    Signed-off-by: Tejun Heo

    Christoph Lameter
     
  • __get_cpu_var() can be replaced with this_cpu_read and will then use a single
    read instruction with implied address calculation to access the correct per cpu
    instance.

    However, the address of a per cpu variable passed to __this_cpu_read() cannot be
    determed (since its an implied address conversion through segment prefixes).
    Therefore apply this only to uses of __get_cpu_var where the addres of the
    variable is not used.

    V3->V4:
    - Move one instance of this_cpu_inc_return to a later patch
    so that this one can go in without percpu infrastructrure
    changes.

    Sedat: fixed compile failure caused by an extra ')'.

    Cc: Neil Horman
    Cc: Martin Schwidefsky
    Cc: Sedat Dilek
    Acked-by: H. Peter Anvin
    Signed-off-by: Christoph Lameter
    Signed-off-by: Tejun Heo

    Christoph Lameter
     

08 Dec, 2010

1 commit


30 Nov, 2010

1 commit


18 Nov, 2010

1 commit


17 Nov, 2010

1 commit


10 Nov, 2010

1 commit


20 Oct, 2010

9 commits


16 Oct, 2010

9 commits