Which of the following statements about morphine is correct?