Skip to content

Commit d208503

Browse files
committed
Actually apply patch #10028 :)
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1492 81a1dc3b-b13d-400b-aceb-764788c761c2
1 parent 93767e0 commit d208503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linuxspi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ static int linuxspi_open(PROGRAMMER *pgm, char *port)
157157

158158
fd_gpiochip = open(gpiochip, 0);
159159
if (fd_gpiochip < 0) {
160-
close(fd_spidev);
161160
avrdude_message(MSG_INFO, "\n%s error: Unable to open the gpiochip %s", progname, gpiochip);
162161
ret = -1;
163162
goto close_spidev;
@@ -193,6 +192,7 @@ static int linuxspi_open(PROGRAMMER *pgm, char *port)
193192

194193
static void linuxspi_close(PROGRAMMER *pgm)
195194
{
195+
close(fd_linehandle);
196196
close(fd_spidev);
197197
close(fd_gpiochip);
198198
}

0 commit comments

Comments
 (0)