opnsense-src/sys/dev/mpr
Mariusz Zaborski ea6597c38c mpr: fix copying of event_mask
Before the commit 6cc44223cb6717795afdac4348bbe7e2a968a07d the
field event_mask was fully copied to the EventMasks field.
After this commit the event_mask (uint8_t) is 4 times casted to
EventMask (uint32_t). Because of that 24 bits of each event_mask array
is lost.

This commits brings back simple copying of field, and after words
converting 32 bits field to the requested endian.

I don't think we need more sophisticated method,
as the array is of size 4 (for 32 bits version).

Reviewed by:	imp
MFC after:	1 week
Sponsored by:	Klara Inc.
Differential Revision:	https://reviews.freebsd.org/D39562
2023-04-21 10:01:38 +02:00
..
mpi mpr: clean up empty lines in .c and .h files 2020-09-01 22:07:12 +00:00
mpr.c mpr: fix copying of event_mask 2023-04-21 10:01:38 +02:00
mpr_config.c mps/mpr: Add missing newlines in error messages. 2022-02-22 15:08:22 -05:00
mpr_ioctl.h mpr: clean up empty lines in .c and .h files 2020-09-01 22:07:12 +00:00
mpr_mapping.c mpr(4): Remove a double word in a source code comment 2022-09-04 13:46:44 +02:00
mpr_mapping.h Update copyright information 2018-12-26 10:43:31 +00:00
mpr_pci.c mpr/mps/mpt: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:39:32 -07:00
mpr_sas.c mpr/mps: when sending reset on removal, include target in message 2022-04-28 16:30:00 -06:00
mpr_sas.h mpr/mps: Remove write-only flag and callout 2022-01-24 13:21:09 -07:00
mpr_sas_lsi.c mps/mpr: Add missing newlines in error messages. 2022-02-22 15:08:22 -05:00
mpr_table.c Fix "set but not used" warnings in the mpr driver. This fixes a minor 2021-11-25 03:28:29 +00:00
mpr_table.h Convert some in-line printing of diagnostic into tables. 2017-09-09 22:02:36 +00:00
mpr_user.c Fix kernel memory disclosures in mpr and mps 2023-03-02 13:31:06 -07:00
mprvar.h mpr(4): Handle mprsas_alloc_tm() errors on device removal. 2021-08-20 10:03:32 -04:00