Green’s Dictionary of Slang

trip n.2

1. [late 19C–1950s] (Aus. / US Und.) a prison sentence.

2. [1920s+] (US Und.) an arrest.

3. [1930s] (US prison) a transfer from one prison to another.