Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 059d233f authored by Alexander Beregalov's avatar Alexander Beregalov Committed by Dave Airlie
Browse files

drm/radeon: mkregtable.c: close a file before exit

parent d0269ed8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -661,8 +661,10 @@ static int parser_auth(struct table *t, const char *filename)
	fseek(file, 0, SEEK_SET);

	/* get header */
	if (fgets(buf, 1024, file) == NULL)
	if (fgets(buf, 1024, file) == NULL) {
		fclose(file);
		return -1;
	}

	/* first line will contain the last register
	 * and gpu name */