[PATCH 5.11 588/601] kfifo: fix ternary sign extension bugs