Skip to contentSkip to conversation

cmd: mem: refuse mtest when end equals start

PATCH Tom Rini 1 participant 1 message Oct 21 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Tom Rini

author
#1 lore raw
Quoted 8 lines · Thomas Perrot

do_mem_mtest() rejects a range where end is before start, but not one where they are equal. An equal start and end passes through to mem_test_alt(), where num_words = (end - start) / sizeof(ulong) comes out to 0, leaving the function to operate on a range it was never meant to handle rather than on the empty one actually requested.

[...]

Applied to u-boot/main, thanks!

[1/1] cmd: mem: refuse mtest when end equals start

      commit: 56b222b13af16d0a92463b6695f3b833b5299453
Signature · 1 line
Tom