Shares of Western Digital (WDC) - Get Western Digital Corporation Reportclimbed 7.9% to $44.33 Wednesday after Craig-Hallum upgraded the data storage device company's stock to buy from hold with a price target of $54.

Analyst Christian Schwab wrote in a note to investors that the upgrade followed Micron Technology's (MU) - Get Micron Technology, Inc. (MU) Report "positive commentary and announced steps targeting supply growth discipline."

Micron Technology beat analysts' forecasts in its third-quarter earnings and said it sees a solid rebound in memory demand over the second half of the year.

"On Micron's earnings call yesterday the company stated they are beginning to see signs of improvement with the NAND industry benefiting from price elasticity kicking in," Schwab wrote. "The company stated that customer inventory levels improved across most end markets. While seeing signs of improvement the company also still announced further steps to help return the industry to a healthy supply/demand balance."

TheStreet Recommends

There are risks investing in Western Digital, Schwab wrote, noting that the hard drive industry is characterized by declining average selling prices.  Future increases about the historical trend in the rate of average selling price erosion "could have an adverse effect on profitability," he wrote.

Schwab said he is keeping his fiscal 2019 revenue and earnings estimates for Western Digital unchanged at $16.57 billion and $4.86 a share, respectively. He also will leave unchanged his 2020 revenue and earnings estimates of $15.99 billion and $3.24 a share, respectively.

Other companies in the sector were up Wednesday, including Seagate Technology (STX) - Get Seagate Technology PLC Report, up 2.9%, Lam Research (LRCX) - Get Lam Research Corporation (LRCX) Report, up 3.5%, and Broadcom (AVGO) - Get Broadcom Inc. Report, up 1.8%.

Lam Research is a holding in Jim Cramer's Action Alerts PLUS member club. Want to be alerted before Jim Cramer buys or sells LRCX? Learn more now.