Assuming it is not the master cylinder, you could check the stop lamp switch. Easy things first.