Major benchmarks closed the third quarter basically flat Friday, although advancing issues outnumbered declining ones.  The Dow Jones Industrial Average (^DJI -0.98%) had a small gain while the S&P 500 (^GSPC -0.46%) lost a tiny fraction.

Today's stock market

Index Percentage Change Point Change
Dow 0.07% 18.38
S&P 500 (0.00%) (0.02)

Data source: Yahoo! Finance.

For the third quarter, the Dow gained 9% and the S&P 500 rose 7.2%.

Utility stocks were the strongest sector, with the Utilities Select SPDR ETF (XLU 0.27%) up 1.5%. Financial stocks were the biggest laggards; the Financial Select Sector SPDR ETF (XLF -0.58%) fell 1%.  

As for individual stocks, Tesla (TSLA 4.96%) plummeted on yesterday afternoon's news that CEO Elon Musk is being sued for fraud by the Securities Exchange Commission, and BlackBerry (BB -3.14%) beat expectations for its latest quarter.

Stock graph and city street at night.

Image source: Getty Images.

Lawsuit secured

Shares of Tesla were hammered, falling 13.9% after the Securities and Exchange Commission filed a lawsuit against CEO Elon Musk over statements he made in August about taking the company private, alleging that they were false and misleading.

The complaint by the SEC centers on some tweets Musk made on Aug. 7, starting with, "Am considering taking Tesla private at $420. Funding secured." The statement caused Tesla stock to skyrocket before trading was halted. The SEC alleges that that tweet and a series of them that followed were materially false and misleading because Musk "knew or was reckless in not knowing" that there was not an adequate basis in fact for them, not having ever discussed a going-private transaction at $420 per share with any potential funding source.

The SEC is seeking significant consequences for Musk, including "orders of disgorgement, along with prejudgment interest, civil penalties, and an officer and director bar against Musk, and such further relief as the Court may deem appropriate." According to The Wall Street Journal (subscription required), the unpredictable Tesla founder, who denies wrongdoing, turned down a last-minute settlement with the SEC.

The facts of the case seem rather straightforward, and since the lawsuit seeks to ban Musk from being an officer or director of any public company, investors were considering the impact on Tesla of his potential removal from the company's leadership.

BlackBerry beats estimates for sales and profit

Shares of BlackBerry rose 11.7% after the company reported fiscal second-quarter sales and earnings that beat expectations. Non-GAAP revenue fell 10% to $214 million, and that was good enough to beat the analyst consensus of $207 million. Adjusted earnings per share of $0.04 was $0.01 below EPS in the period a year earlier, but above Wall Street expectations for earnings of $0.01 per share.

The Canadian company formerly known as Research in Motion is distancing itself from its past as a maker of handheld devices to grow as a software company focusing on cybersecurity for enterprise devices, connected cars, and the Internet of Things. Software and services grew 4.3% to $193 million, with 29% growth of Blackberry Technology Solutions offsetting a decline of 3.3% in revenue from enterprise software and services, although the latter posted a revenue increase from last quarter. Software and services billings increased double digits from last year.

"I am very encouraged by BlackBerry's leadership opportunities in the fast-growing Enterprise of Things, and by our strategy to capitalize on these significant future opportunities with BlackBerry Spark, our platform to securely communicate and collaborate between smart endpoints," said CEO John Chen in the press release.

The market had punished the stock last quarter when a drop in reported sales of enterprise software due to a change in accounting method created arguably needless concern, but the sequential growth of that segment from three months ago encouraged investors today.