A Lufthansa flight from Los Angeles to Frankfurt, Germany, was forced to make an emergency landing Monday at O'Hare International Airport in Chicago after a passenger's laptop overheated and caused a small fire.

The emergency landing was taken as a "precautionary measure," and "safety on board was not compromised at any time," according to the airline.

"The reason was a small fire onboard the cabin caused by a passenger's overheated laptop," read a statement from Lufthansa. "The small fire was extinguished in flight before its safe landing."

None of the passengers suffered any injuries, but two flight attendants were treated for smoke inhalation after the unscheduled landing.

Once on the ground, the airline's staff assisted passengers with rebooking their flights to their final destinations.

"Lufthansa regrets the inconvenience caused to passengers. The safety of passengers and crews has top priority at all times," the airline stated.

The emergency landing of the Lufthansa plane comes as several airlines had flights interrupted due to unexpected occurrences and as harsh winter conditions have caused thousands of cancellations, particularly for Southwest Airlines.

On Christmas Eve, a JetBlue plane traveling from Barbados to New York was forced to evacuate passengers on the tarmac.

The JetBlue flight landed at John F. Kennedy International Airport around 9 p.m. ET when crew members reported a passenger's cellphone battery caught fire.

Out of the 133 people evacuated from the plane via emergency slides, seven suffered minor injuries. However, no one was transported to the hospital.

Prior to that, a Spirit Airlines flight destined for Cancun was also forced to make an emergency landing Friday in Philadelphia after it was struck by lightning twice. The aircraft landed safely.

Planes of German air carrier Lufthansa are parked at Frankfurt airport in Frankfurt, Germany, June 2, 2020.
Planes of German air carrier Lufthansa are parked at Frankfurt airport in Frankfurt, Germany, June 2, 2020. Reuters / Kai Pfaffenbach