Add missing break in amdgpu_gfx_v8_0.c

Reviewed by <mrg>

Detected with GCC7 with kUBSan build for NetBSD/i386
This commit is contained in:
kamil 2019-02-23 19:37:36 +00:00
parent cf28f6959e
commit e9178591aa

View File

@ -1,4 +1,4 @@
/* $NetBSD: amdgpu_gfx_v8_0.c,v 1.1 2018/08/27 14:10:14 riastradh Exp $ */
/* $NetBSD: amdgpu_gfx_v8_0.c,v 1.2 2019/02/23 19:37:36 kamil Exp $ */
/*
* Copyright 2014 Advanced Micro Devices, Inc.
@ -23,7 +23,7 @@
*
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: amdgpu_gfx_v8_0.c,v 1.1 2018/08/27 14:10:14 riastradh Exp $");
__KERNEL_RCSID(0, "$NetBSD: amdgpu_gfx_v8_0.c,v 1.2 2019/02/23 19:37:36 kamil Exp $");
#include <linux/firmware.h>
#include <linux/module.h>
@ -1640,6 +1640,7 @@ static void gfx_v8_0_tiling_mode_table_init(struct amdgpu_device *adev)
adev->gfx.config.macrotile_mode_array[reg_offset] = gb_tile_moden;
WREG32(mmGB_MACROTILE_MODE0 + reg_offset, gb_tile_moden);
}
break;
case CHIP_FIJI:
for (reg_offset = 0; reg_offset < num_tile_mode_states; reg_offset++) {
switch (reg_offset) {