]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
UBUNTU: hio: Use correct sizes when initializing ssd_index_bits* arrays
authorSeth Forshee <seth.forshee@canonical.com>
Mon, 23 Oct 2017 17:38:10 +0000 (12:38 -0500)
committerAndrea Righi <andrea.righi@canonical.com>
Thu, 9 Mar 2023 14:57:14 +0000 (15:57 +0100)
commitcae4ebb18efed95a6f66616efffb5eae191709ce
treefbb9c8e170e2adb357eb979f9d471345631d389a
parent31e96effd96446326669ecd41fc473f04b48d3b0
UBUNTU: hio: Use correct sizes when initializing ssd_index_bits* arrays

The memsets which initialize these arrays use a size of the
number of elements in the array without multplying by the size of
the array elements, therefore these arrays are only partially
initialized. Fix this by using sizeof to trivially get the
correct size for these arrays.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
ubuntu/hio/hio.c