diff options
author | Benjamin Marzinski <bmarzins@redhat.com> | 2024-07-02 12:13:24 +0200 |
---|---|---|
committer | Mikulas Patocka <mpatocka@redhat.com> | 2024-07-02 20:53:41 +0200 |
commit | 140ce37fd78a629105377e17842465258a5459ef (patch) | |
tree | e625ac0c2e1c161390daee7a14c555b88f84d6ee /lib/crypto/mpi/mpiutil.c | |
parent | c1a66a37d606d27bad037b34083464a7f515d619 (diff) |
dm init: Handle minors larger than 255
dm_parse_device_entry() simply copies the minor number into dmi.dev, but
the dev_t format splits the minor number between the lowest 8 bytes and
highest 12 bytes. If the minor number is larger than 255, part of it
will end up getting treated as the major number
Fix this by checking that the minor number is valid and then encoding it
as a dev_t.
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions