According to Li Rangyi's biography of the New Book of Tang, he was made the military governor of Huainan Circuit (淮南, headquartered in modern Yangzhou, Jiangsu) in the same year of Emperor Wuzong's death (847). He subsequently grew ill and died on the way back to the Tang capital Chang'an on the way back from Huainan. This suggested (but did not prove) that he died that year. See New Book of Tang, vol. 181.