Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ipipe-x86
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomaixenomai
  • ipipe-x86
  • Repository
Switch branch/tag
  • ipipe-x86
  • kernel
  • trace
  • trace_events_filter.c
Find file BlameHistoryPermalink
  • Thomas Meyer's avatar
    tracing/trivial: Use kcalloc instead of kzalloc to allocate array · 47b0edcb
    Thomas Meyer authored Nov 29, 2011
    The advantage of kcalloc is, that will prevent integer overflows which could
    result from the multiplication of number of elements and size and it is also
    a bit nicer to read.
    
    The semantic patch that makes this change is available
    in https://lkml.org/lkml/2011/11/25/107
    
    Link: http://lkml.kernel.org/r/1322600880.1534.347.camel@localhost.localdomain
    
    
    
    Signed-off-by: default avatarThomas Meyer <thomas@m3y3r.de>
    Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
    47b0edcb

Imprint & Privacy Policy