Am Sonntag, 14. Mai 2006 16:11 schrieb [EMAIL PROTECTED]:
> +static int __init qcm_init(void)
> +{
> + struct usbvideo_cb cbTbl;
> +
> + info(DRIVER_DESC " " DRIVER_VERSION);
> + memset(&cbTbl, 0, sizeof(cbTbl));
> +
> + cbTbl.probe = qcm_probe;
> + cbTbl.setupOnOpen = qcm_setup_on_open;
> + cbTbl.processData = qcm_process_isoc;
> + cbTbl.setVideoMode = qcm_set_video_mode;
> + cbTbl.startDataPump = qcm_start_data;
> + cbTbl.stopDataPump = qcm_stop_data;
> + cbTbl.adjustPicture = qcm_adjust_picture;
> + cbTbl.userFree = qcm_free_uvd;
> + return usbvideo_register(
> + &cams,
> + MAX_CAMERAS,
> + sizeof(struct qcm),
> + "QCM",
> + &cbTbl,
> + THIS_MODULE,
> + qcm_table);
> +}
Building this data structure on the stack is a shooting offense.
Regards
Oliver
Rȧ�:&q�[���y�hv����^y�h��i��py����z�r���!���n}�h�ꮉ�%����ފ{^���y�^r薈2����쨺��m欉�ã
塧HŞm*az����bq�b�t�����]5m�v����!xg��x��m���zV���ږF�����\�