Jaycee Chan, the son of Jackie Chan, was among several celebrities caught in a drug crackdown this year.
Jaycee Chan, the son of action film star Jackie Chan, has been jailed for six months for a drug offence.Chan, 32, pleaded guilty in Beijing's Dongcheng District Court to "sheltering others to use drugs".
Police raided his home in August and found more than 100g of marijuana. He faced a maximum sentence of three years.
His arrest came amid a drug use crackdown in China which saw several celebrities arrested.
In June 2014, President Xi Jinping ordered police to use strong measures to stop drug use.
This confession from the son of one of China's most famous actors underlines a key message from the Chinese government: no-one is immune from China's crackdown on illegal drugs, reports the BBC's Celia Hatton in Beijing.
'Ashamed' Chan and Taiwanese movie star Kai Ko, 23, were both detained at his Beijing home in August, with police saying they tested positive for marijuana. Mr Ko was released after a 14-day administrative detention for drug use.
But Jaycee Chan was put under "criminal detention" for the additional and more serious crime of "providing a shelter for others to abuse drugs", Beijing police said at the time.
He told the court on Friday that when police came to his house "I just gave them information and I confessed because I didn't know how to deal with the marijuana".
Chan was also fined 2,000 yuan ($322; £213), reports said.
Jackie Chan, who was named an official "Narcotics Control Ambassador" by Chinese police in 2009, has said he felt "ashamed" and "sad" over his son's behaviour.