ports/emulators/skyeye/files/patch-device__nandflash__nadflash_smallblock.c
Vanilla I. Shu 27a66f0176 Upgrade to 1.2.5.
PR:		ports/193155
Submitted by:	Ports Fury.
2014-09-03 03:36:41 +00:00

11 lines
411 B
C

--- device/nandflash/nandflash_smallblock.c.orig
+++ device/nandflash/nandflash_smallblock.c
@@ -516,7 +516,7 @@
#endif
nf->writebuffer=(u8*)malloc(dev->pagedumpsize);
//nf->memsize=528*32*4096;
- if ((nf->fdump= open(dev->dump, FILE_FLAG)) < 0)
+ if ((nf->fdump= open(dev->dump, FILE_FLAG, S_IRUSR | S_IWUSR)) < 0)
{
free(nf);
printf("error open nandflash dump!\n");