Tag: 0e4a008a4f389b468cfe8b58c7d77882a6e25695

UBI: fix IS_ERR test

Author: Julien Brunel <brunel@diku.dk> In case of error, the function add_volume returns an ERR pointer. The result of IS_ERR, which is supposed to be used in a test as it is, is here checked to be less than zero, which seems odd. We suggest to replace this test by a simple IS_ERR test. A simplified …

Continue reading