Coverity has called Linux the "benchmark of quality" in its newly published 2012 Coverity Scan Open Source report. The company annually brings together millions of lines of code from open source and, using the same defect-scanning technology that it uses with its enterprise customers, scans that code for problems to produce data on defect densities.
The "accepted industry standard" for defects is 1.0; one in every thousand lines of code. Linux 3.8's 7.6 million lines of code has a defect density of .59, comparing well with 2012 (7.4 million and a .66 density) and 2011 (6.8 million and a .62 density). In general, the code quality of open source code is equivalent to that of proprietary code;
rest here