diff --git a/[refs] b/[refs] index 2e487342bd0b..aeeacd897ad2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 774a1221e862b343388347bac9b318767336b20b +refs/heads/master: 4adf07fba3bd64472921a01aae0e116f9f948b77 diff --git a/trunk/drivers/base/firmware_class.c b/trunk/drivers/base/firmware_class.c index d81460309182..b392b353be39 100644 --- a/trunk/drivers/base/firmware_class.c +++ b/trunk/drivers/base/firmware_class.c @@ -305,7 +305,7 @@ static bool fw_read_file_contents(struct file *file, struct firmware_buf *fw_buf char *buf; size = fw_file_size(file); - if (size < 0) + if (size <= 0) return false; buf = vmalloc(size); if (!buf)