Re: [GIT PULL 7/7] stm class: Prevent division by zero

From: Greg Kroah-Hartman
Date: Thu Feb 21 2019 - 09:44:16 EST

On Thu, Feb 21, 2019 at 03:49:59PM +0200, Alexander Shishkin wrote:
> Using STP_POLICY_ID_SET ioctl command with dummy_stm device, or any STM
> device that supplies zero mmio channel size, will trigger a division by
> zero bug in the kernel.
> Prevent this by disallowing channel widths other than 1 for such devices.
> Signed-off-by: Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx>

Fixes: tag?