]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
plugins/seagate: fixup byte calculation
authorHannes Reinecke <hare@suse.de>
Fri, 22 Apr 2022 11:10:01 +0000 (13:10 +0200)
committerHannes Reinecke <hare@suse.de>
Fri, 22 Apr 2022 11:10:01 +0000 (13:10 +0200)
commite233f67b63ce957e6604c9fd731e4dec0a4e61f8
treeddb9e123a549c2e77f1e866a8d713ef8e36e23e4
parentc3d1fad850f7bd72ecc6c362398ae030325111eb
plugins/seagate: fixup byte calculation

When calculating the number of bytes from the number of blocks one
has to ensure that the values can't overflow, so use a large data
type for the number of bytes than for the number of blocks.

Signed-off-by: Hannes Reinecke <hare@suse.de>
plugins/seagate/seagate-nvme.c