09 Feb, 2012

1 commit


06 Feb, 2012

1 commit


02 Feb, 2012

1 commit


01 Feb, 2012

3 commits


31 Jan, 2012

2 commits


30 Jan, 2012

1 commit

  • The Openmoko GTA01 machine has been removed from the machine ID database,
    so we need to remove references to it as well.

    Without that fix we have:
    sound/soc/samsung/neo1973_wm8753.c: In function ‘neo1973_wm8753_init’:
    sound/soc/samsung/neo1973_wm8753.c:325:2: error: implicit declaration of function ‘machine_is_neo1973_gta01’

    Signed-off-by: Denis 'GNUtoo' Carikli
    Signed-off-by: Mark Brown

    Denis 'GNUtoo' Carikli
     

28 Jan, 2012

1 commit


27 Jan, 2012

1 commit


26 Jan, 2012

4 commits


25 Jan, 2012

1 commit


24 Jan, 2012

2 commits

  • In wm2000_i2c_probe(), if we take the true branch in

    "
    ret = snd_soc_register_codec(&i2c->dev, &soc_codec_dev_wm2000,
    NULL, 0);
    if (ret != 0)
    goto err_fw;
    "

    then we'll release_firmware(fw) at the 'err_fw' label. But we've already
    done that just a few lines above. That's a use-after-free bug.

    This patch restructures the code so that we always call
    release_firmware(fw) before leaving the function, but only ever call
    it once.
    This means that we have to initialize 'fw' to NULL since some paths
    may now end up calling it without having called request_firmware(),
    but since request_firmware() deals gracefully with NULL pointers, we
    are fine if we just NULL initialize it.

    Signed-off-by: Jesper Juhl
    Signed-off-by: Mark Brown

    Jesper Juhl
     
  • To print a value of type size_t one should use %zd, not %d.

    Signed-off-by: Jesper Juhl
    Signed-off-by: Mark Brown

    Jesper Juhl
     

23 Jan, 2012

1 commit


21 Jan, 2012

1 commit

  • On a mx28evk board the following errors happens on mxs-sgtl5000 probe:

    [ 0.660000] saif0_clk_set_rate: divider writing timeout
    [ 0.670000] mxs-sgtl5000: probe of mxs-sgtl5000.0 failed with error -110
    [ 0.670000] ALSA device list:
    [ 0.680000] No soundcards found.

    This timeout happens because clk_set_rate will result in writing to the DIV bits
    of register HW_CLKCTRL_SAIF0 with the saif clock gated (CLKGATE bit set to one).

    MX28 Reference states the following about CLKGATE:

    "The DIV field can change ONLY when this clock gate bit field is low."

    So call clk_prepare_enable prior to clk_set_rate to fix this problem.

    After this change the mxs-saif driver can be correctly probed and audio is functional.

    Signed-off-by: Fabio Estevam
    Signed-off-by: Mark Brown

    Fabio Estevam
     

20 Jan, 2012

16 commits


19 Jan, 2012

4 commits

  • Permit key_serial() to be called with a const key pointer.

    Signed-off-by: David Howells
    Signed-off-by: James Morris

    David Howells
     
  • Replace the rcu_assign_pointer() calls with rcu_assign_keypointer().

    Signed-off-by: Mimi Zohar
    Signed-off-by: David Howells
    Signed-off-by: James Morris

    Mimi Zohar
     
  • Fix ima_policy.c sparse "warning: dereference of noderef expression"
    message, by accessing cred->uid using current_cred().

    Changelog v1:
    - Change __cred to just cred (based on David Howell's comment)

    Signed-off-by: Mimi Zohar
    Signed-off-by: James Morris

    Mimi Zohar
     
  • Randy Dunlap reports that we get

    arch/x86/um/shared/sysdep/ptrace.h:7:20: error: redefinition of 'regs_return_value'
    arch/x86/um/shared/sysdep/ptrace.h:7:20: note: previous definition of 'regs_return_value' was here

    when compiling UML for x86-64.

    Stephen Rothwell root-caused it and says:

    "Caused by commit d7e7528bcd45 ("Audit: push audit success and retcode
    into arch ptrace.h") (another patch that was never in linux-next :-().

    This file now needs protection against double inclusion."

    so let's do as the man says.

    Reported-by: Randy Dunlap
    Analyzed-by: Stephen Rothwell
    Signed-off-by: Linus Torvalds

    Linus Torvalds