Skip to content

GitLab

  • Menu
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
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomai
  • ipipe-x86
  • Repository

Switch branch/tag
  • ipipe-x86
  • drivers
  • ptp
  • ptp_clock.c
Find file BlameHistoryPermalink
  • Christophe Jaillet's avatar
    ptp: Fix resource leak in case of error · b9118b72
    Christophe Jaillet authored Oct 02, 2016
    
    
    A call to 'ida_simple_remove()' is missing in the error handling path.
    
    This as been spotted with the following coccinelle script which tries to
    detect missing 'ida_simple_remove()' call in error handling paths.
    
    ///////////////
    @@
    expression x;
    identifier l;
    @@
    
    *   x = ida_simple_get(...);
        ...
        if (...) {
        ...
        }
        ...
        if (...) {
           ...
           goto l;
        }
        ...
    *   l: ... when != ida_simple_remove(...);
    Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
    Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    b9118b72

Replace ptp_clock.c

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.

Imprint & Privacy Policy