[BACK]Return to utoppy.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev / usb

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/usb/utoppy.c between version 1.24.4.13 and 1.24.4.14

version 1.24.4.13, 2016/12/05 10:55:20 version 1.24.4.14, 2017/08/28 17:52:30
Line 1336  utoppyopen(dev_t dev, int flag, int mode
Line 1336  utoppyopen(dev_t dev, int flag, int mode
         sc->sc_state = UTOPPY_STATE_OPENING;          sc->sc_state = UTOPPY_STATE_OPENING;
         sc->sc_turbo_mode = 0;          sc->sc_turbo_mode = 0;
         sc->sc_out_data = kmem_alloc(UTOPPY_BSIZE + 1, KM_SLEEP);          sc->sc_out_data = kmem_alloc(UTOPPY_BSIZE + 1, KM_SLEEP);
         if (sc->sc_out_data == NULL) {  
                 error = ENOMEM;  
                 goto error;  
         }  
   
         sc->sc_in_data = kmem_alloc(UTOPPY_BSIZE + 1, KM_SLEEP);          sc->sc_in_data = kmem_alloc(UTOPPY_BSIZE + 1, KM_SLEEP);
         if (sc->sc_in_data == NULL) {  
                 kmem_free(sc->sc_out_data, UTOPPY_BSIZE + 1);  
                 sc->sc_out_data = NULL;  
                 error = ENOMEM;  
                 goto error;  
         }  
   
         if ((error = utoppy_cancel(sc)) != 0)          if ((error = utoppy_cancel(sc)) != 0)
                 goto error;                  goto error;

Legend:
Removed from v.1.24.4.13  
changed lines
  Added in v.1.24.4.14

CVSweb <webmaster@jp.NetBSD.org>