Menu

#19 fix race condition in open(), making computer freeze

open
nobody
Driver (16)
5
2014-09-30
2011-03-06
cristi
No

This should fix https://sourceforge.net/tracker/index.php?func=detail&aid=3187007&group_id=178178&atid=884191

There is a race condition in the opening function - mutex_lock should be called before the check for device being already opened.
Attach patch - made to tag 2.1.0 - but it should be applied to trunk as well. Also, the test program.
(note - due do my distro + another patch to the source - I manually edited the patch file. Hope it can still be applied automatically, by 'patch')

Discussion

  • cristi

    cristi - 2011-03-06

    patch to fix device open() race conditions and computer freeze

     
  • cristi

    cristi - 2011-03-06

    program to compile and run to replicate problem

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.