Skip to content
Snippets Groups Projects
Select Git revision
  • 066450be419fa48007a9f29e19828f2a86198754
  • openEuler-1.0-LTS default protected
  • openEuler-22.09
  • OLK-5.10
  • openEuler-22.03-LTS
  • openEuler-22.03-LTS-Ascend
  • master
  • openEuler-22.03-LTS-LoongArch-NW
  • openEuler-22.09-HCK
  • openEuler-20.03-LTS-SP3
  • openEuler-21.09
  • openEuler-21.03
  • openEuler-20.09
  • 4.19.90-2210.5.0
  • 5.10.0-123.0.0
  • 5.10.0-60.63.0
  • 5.10.0-60.62.0
  • 4.19.90-2210.4.0
  • 5.10.0-121.0.0
  • 5.10.0-60.61.0
  • 4.19.90-2210.3.0
  • 5.10.0-60.60.0
  • 5.10.0-120.0.0
  • 5.10.0-60.59.0
  • 5.10.0-119.0.0
  • 4.19.90-2210.2.0
  • 4.19.90-2210.1.0
  • 5.10.0-118.0.0
  • 5.10.0-106.19.0
  • 5.10.0-60.58.0
  • 4.19.90-2209.6.0
  • 5.10.0-106.18.0
  • 5.10.0-106.17.0
33 results

arch

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Ingo Molnar authored
    Dan Carpenter pointed out that the control flow in pt_pmu_hw_init()
    is a bit messy: for example the kfree(de_attrs) is entirely
    superfluous.
    
    Another problem is the inconsistent mixing of label based and
    direct return error handling.
    
    Add modern, label based error handling instead and clean up the code
    a bit as well.
    
    Note that we'll still do a kfree(NULL) in the normal case - this does
    not matter as this is an init path and kfree() returns early if it
    sees a NULL.
    
    Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Link: http://lkml.kernel.org/r/20150409090805.GG17605@mwanda
    
    
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    066450be
    History
    Name Last commit Last update
    ..