[PATCH 4.14 15/55] ring-buffer: Avoid softlockup in ring_buffer_resize()