If you want to avoid accidentally making a call when your phone is in your pocket or bag, you can lock your buttons and screen.
To lock your buttons and screen, press the Power/Lock button.
Press the Power/Lock button, and swipe up across the screen. If asked, provide additional credentials.