General Motors Co is in talks with banks to secure a $5 billion credit revolver as it prepares to file for an initial public offering of its stock this year, a source familiar with the plan said on Friday.

A new credit line should provide GM with an additional liquidity cushion in the event of a possible double-dip recession and also bankroll GM's expansion in global markets including China, the source told Reuters.

He asked not to be named because he was not authorized to discuss the confidential plans.

GM is also considering issuing new capital in the IPO to address a $27 billion shortfall in its pension funding and improve its balance sheet further, sources involved in the preparations have told Reuters previously.

GM spokeswoman Noreen Pratscher had no comment.

(Reporting by Philipp Halstrick in Frankfurt, writing by Soyoung Kim; Editing by Derek Caney)