Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • include
  • linux
  • libata.h
Find file BlameHistoryPermalink
  • Tejun Heo's avatar
    [PATCH] libata: fix qc->n_elem == 0 case handling in ata_qc_next_sg · cc1887f3
    Tejun Heo authored Feb 20, 2006
    
    
    This patch makes ata_for_each_sg() start with pad_sgent when
    qc->n_elem is zero.  Previously, ata_for_each_sg() unconditionally
    started with qc->__sg, handling the first sg to fill_sg() routines
    even when the entry was invalid.  And while at it, unwind ?: in
    ata_qc_next_sg() into if statement.
    
    Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
    Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
    cc1887f3
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7