Bam Margera is headed in the right direction ... getting released from a psychiatric hospital, and going straight into treatment at Lamar Odom's rehab center.
Sources familiar with the situation tell TMZ the former "Jackass" star was released from a psych hospital Wednesday, and Lamar was there to greet him as he exited the facility. We're told Bam is now in detox at one of Lamar's locations before he heads to rehab at another spot owned by the former NBA star.
Lamar's been insistent on helping Bam for weeks, and even visited him in the hospital Tuesday to offer Bam treatment at one of his Odom Wellness Treatment Centers.